diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 01:49:47 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 01:49:47 +0200 |
commit | cfb6ce2abed2c96d0f5af268e2d22322f47831ed (patch) | |
tree | 8db5e169b3fa6fb10d057057f243830f46e35eeb /nixos/tests | |
parent | 7889fcfa41c718b52e2161e74de38a8479cd50fb (diff) | |
download | nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar.gz nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar.bz2 nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar.lz nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar.xz nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.tar.zst nixlib-cfb6ce2abed2c96d0f5af268e2d22322f47831ed.zip |
nixos/tests/taskserver: Make tests less noisy
We were putting the whole output of "nixos-taskserver export-user" from the server to the respective client and on every such operation the whole output was shown again in the test log. Now we're *only* showing these details whenever a user import fails on the client. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/taskserver.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/tests/taskserver.nix b/nixos/tests/taskserver.nix index 574af0aa8803..5d2e030a8f6d 100644 --- a/nixos/tests/taskserver.nix +++ b/nixos/tests/taskserver.nix @@ -50,7 +50,15 @@ import ./make-test.nix { $exportinfo =~ s/'/'\\'''/g; - $client->succeed(su $user, "eval '$exportinfo' >&2"); + $client->nest("importing taskwarrior configuration", sub { + my $cmd = su $user, "eval '$exportinfo' >&2"; + my ($status, $out) = $client->execute_($cmd); + if ($status != 0) { + $client->log("output: $out"); + die "command `$cmd' did not succeed (exit code $status)\n"; + } + }); + $client->succeed(su $user, "task config taskd.server server:${portStr} >&2" ); |