mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
Merge pull request #257937 from RaitoBezarius/reduce-spam-for-boot
nixos/lib/test-driver: reduce spam at boot hangs
This commit is contained in:
commit
47a9fc3fb3
@ -843,6 +843,9 @@ class Machine:
|
||||
|
||||
while True:
|
||||
chunk = self.shell.recv(1024)
|
||||
# No need to print empty strings, it means we are waiting.
|
||||
if len(chunk) == 0:
|
||||
continue
|
||||
self.log(f"Guest shell says: {chunk!r}")
|
||||
# NOTE: for this to work, nothing must be printed after this line!
|
||||
if b"Spawning backdoor root shell..." in chunk:
|
||||
|
Loading…
Reference in New Issue
Block a user