1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

nixos/tests/printing: fix after setting pipefail

It failed since pipefail (b7749c7, PR #125683), due to `systemctl status`
not exiting with code=0 for inactive units (apparently).
That command is meant for humans anyway.
This commit is contained in:
talyz 2021-06-10 07:56:22 +02:00 committed by Vladimír Čunát
parent 9269ea2b53
commit b4fd0a9118
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -63,7 +63,7 @@ in {
):
serviceClient.sleep(20)
socketActivatedClient.wait_until_succeeds(
"systemctl status ensure-printers | grep -q -E 'code=exited, status=0/SUCCESS'"
"systemctl show ensure-printers | grep -q -E 'code=exited ; status=0'"
)