Skip to content

Commit

Permalink
Merge pull request #72899 from JohnAZoidberg/fix-py-test-driver-crash
Browse files Browse the repository at this point in the history
nixos/tests: Ignore shutdown/crash if not booted
  • Loading branch information
worldofpeace committed Nov 6, 2019
2 parents f8948e9 + afbfef9 commit 0923ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/lib/test-driver/test-driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,14 @@ def process_serial_output():
self.log("QEMU running (pid {})".format(self.pid))

def shutdown(self):
if self.booted:
if not self.booted:
return

self.shell.send("poweroff\n".encode())
self.wait_for_shutdown()

def crash(self):
if self.booted:
if not self.booted:
return

self.log("forced crash")
Expand Down

0 comments on commit 0923ffb

Please sign in to comment.