Skip to content
Snippets Groups Projects
Commit 52c0f4bb authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

report the log on exercise-storage failure too

parent 5977de46
No related branches found
No related tags found
1 merge request!10End-to-end with ristretto
......@@ -134,6 +134,15 @@ import <nixpkgs/nixos/tests/make-test.nix> {
};
# The client should be prepped now. Make it try to use some storage.
$client->succeed('set -eo pipefail; ${exercise-storage} | systemd-cat');
'';
eval {
$client->succeed('set -eo pipefail; ${exercise-storage} /tmp/client | systemd-cat');
# nothing succeeds like ... 1.
1;
} or do {
my $error = $@ || 'Unknown failure';
my ($code, $log) = $client->execute('cat /tmp/stdout /tmp/stderr');
$client->log($log);
die $@;
};
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment