]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: wait until the test container is fully booted up 32189/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Apr 2024 19:16:41 +0000 (21:16 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Apr 2024 19:39:46 +0000 (21:39 +0200)
TEST-69 still occasionally times out in CI and appears to be stuck on
boot, so let's see if this helps the situation a bit.

test/test-shutdown.py

index b83487c5d4dac46726ea6fae315b512234a661c5..870c1e269f596e5de5523a50fd6d8f83f7f36e69 100755 (executable)
@@ -43,6 +43,10 @@ def run(args):
         console.send('c')
         console.expect('screen1 ', 10)
 
+        logger.info('wait for the machine to fully boot')
+        console.sendline('systemctl is-system-running --wait')
+        console.expect(r'\b(running|degraded)\b', 60)
+
 #        console.interact()
 
         console.sendline('tty')