Allow systemd stop grace before requiring VM shutdown
This commit is contained in:
parent
4dc704b581
commit
b2df71f282
1 changed files with 4 additions and 2 deletions
|
|
@ -203,7 +203,9 @@ def main():
|
|||
command("test -e /run/archipelago-live; archipelago install /dev/vda --erase")
|
||||
event("installation-passed")
|
||||
child.sendline("systemctl poweroff")
|
||||
child.expect(pexpect.EOF, timeout=90)
|
||||
# systemd may spend its default 90s stopping a service. Allow that grace
|
||||
# period plus shutdown work; require actual QEMU exit, never force-pass.
|
||||
child.expect(pexpect.EOF, timeout=180)
|
||||
child.close()
|
||||
log.close()
|
||||
boot(False)
|
||||
|
|
@ -291,7 +293,7 @@ def main():
|
|||
command("strace --version; modprobe v4l2loopback; test -c /dev/video0; "
|
||||
"modprobe -r v4l2loopback; archipelago self-check; archipelago status", True)
|
||||
child.sendline("sudo systemctl poweroff")
|
||||
child.expect(pexpect.EOF, timeout=90)
|
||||
child.expect(pexpect.EOF, timeout=180)
|
||||
results["passed"] = True
|
||||
event("acceptance-passed")
|
||||
except Exception as error:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue