From b4fd0a9118f91a0b8523dc48c22b18c82409ae68 Mon Sep 17 00:00:00 2001 From: talyz Date: Thu, 10 Jun 2021 07:56:22 +0200 Subject: [PATCH] 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. --- nixos/tests/printing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/printing.nix b/nixos/tests/printing.nix index b2f2540fb7a1..badcb99a57af 100644 --- a/nixos/tests/printing.nix +++ b/nixos/tests/printing.nix @@ -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'" )