Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
iximeow committed Oct 18, 2024
1 parent a8312eb commit 324bb52
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions phd-tests/tests/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ mod running_process {
.await?;
vm.run_shell_command("chmod +x dirt.sh").await?;
// When dirt.sh suspends itself, the parent shell will report a non-zero
// status (148, in particular: 128 + SIGTSTP aka 20 for Linux guests).
// status (one example is 148: 128 + SIGTSTP aka 20 on Linux).
let run_dirt = vm.run_shell_command("./dirt.sh").check_err().await?;
assert!(run_dirt.contains("made dirt"), "dirt.sh failed: {run_dirt:?}");
assert!(
Expand Down Expand Up @@ -386,10 +386,8 @@ async fn run_serial_history_test(
source.launch().await?;
source.wait_to_boot().await?;

let out = source
.run_shell_command("echo hello from the source VM!")
.ignore_status()
.await?;
let out =
source.run_shell_command("echo hello from the source VM!").await?;
assert_eq!(out, "hello from the source VM!");

let serial_hist_pre = source.get_serial_console_history(0).await?;
Expand Down

0 comments on commit 324bb52

Please sign in to comment.