From 5977de46ad230673ea4bf91fd8ce2ce9aac1996d Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 27 Sep 2019 12:22:26 -0400 Subject: [PATCH] succeed does not really succeed on its own --- nixos/modules/tests/private-storage.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/tests/private-storage.nix b/nixos/modules/tests/private-storage.nix index a3ec8f50..cb7203e0 100644 --- a/nixos/modules/tests/private-storage.nix +++ b/nixos/modules/tests/private-storage.nix @@ -124,6 +124,8 @@ import <nixpkgs/nixos/tests/make-test.nix> { # Get some ZKAPs from the issuer. eval { $client->succeed('set -eo pipefail; ${get-passes} http://127.0.0.1:3456 http://issuer:8081 | systemd-cat'); + # succeed() is not success but 1 is. + 1; } or do { my $error = $@ || 'Unknown failure'; my ($code, $log) = $client->execute('cat /tmp/stdout /tmp/stderr'); -- GitLab