tests.testers.testBuildFailure.helloDoesNotFail: fix confusing output
the output made me think that the test failed but did not fail testBuildFailure-helloDoesNotFail> Checking /nix/store/x6403x1llpk00i59cmr96iy92mx1f7hb-hello-2.12.1/testBuildFailure.log testBuildFailure-helloDoesNotFail> testBuildFailure: The builder did not fail, but a failure was expected!
This commit is contained in:
parent
40197595ce
commit
3f3ca2d90d
1 changed files with 2 additions and 1 deletions
|
@ -58,9 +58,10 @@ lib.recurseIntoAttrs {
|
||||||
inherit hello;
|
inherit hello;
|
||||||
} ''
|
} ''
|
||||||
echo "Checking $failed/testBuildFailure.log"
|
echo "Checking $failed/testBuildFailure.log"
|
||||||
grep -F 'testBuildFailure: The builder did not fail, but a failure was expected' $failed/testBuildFailure.log
|
grep -F 'testBuildFailure: The builder did not fail, but a failure was expected' $failed/testBuildFailure.log >/dev/null
|
||||||
[[ 1 = $(cat $failed/testBuildFailure.exit) ]]
|
[[ 1 = $(cat $failed/testBuildFailure.exit) ]]
|
||||||
touch $out
|
touch $out
|
||||||
|
echo 'All good.'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
multiOutput = runCommand "testBuildFailure-multiOutput" {
|
multiOutput = runCommand "testBuildFailure-multiOutput" {
|
||||||
|
|
Loading…
Reference in a new issue