diff mbox series

[kvm-unit-tests] x86: Run unit tests with --no-reboot so shutdowns show up as failures

Message ID 20200310025249.30961-1-sean.j.christopherson@intel.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] x86: Run unit tests with --no-reboot so shutdowns show up as failures | expand

Commit Message

Sean Christopherson March 10, 2020, 2:52 a.m. UTC
Run tests with --no-reboot so that triple fault shutdowns get reported
as failures.  By default, Qemu automatically reboots on shutdown, i.e.
automatically restarts the test, eventually leading to a timeout.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
---

I don't think there are any tests would run afoul of --no-reboot?

 x86/run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/x86/run b/x86/run
index 1ac91f1..8b2425f 100755
--- a/x86/run
+++ b/x86/run
@@ -37,7 +37,7 @@  else
 	pc_testdev="-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out"
 fi
 
-command="${qemu} -nodefaults $pc_testdev -vnc none -serial stdio $pci_testdev"
+command="${qemu} --no-reboot -nodefaults $pc_testdev -vnc none -serial stdio $pci_testdev"
 command+=" -machine accel=$ACCEL -kernel"
 command="$(timeout_cmd) $command"