mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
tests/functional/repl: Improve failure reporting
This commit is contained in:
parent
c4ae9bb45b
commit
6e680a6644
@ -311,7 +311,10 @@ for test in $(cd "$testDir/repl"; echo *.in); do
|
|||||||
in="$testDir/repl/$test.in"
|
in="$testDir/repl/$test.in"
|
||||||
actual="$testDir/repl/$test.actual"
|
actual="$testDir/repl/$test.actual"
|
||||||
expected="$testDir/repl/$test.expected"
|
expected="$testDir/repl/$test.expected"
|
||||||
(cd "$testDir/repl"; set +x; runRepl 2>&1) < "$in" > "$actual"
|
(cd "$testDir/repl"; set +x; runRepl 2>&1) < "$in" > "$actual" || {
|
||||||
|
echo "FAIL: $test (exit code $?)" >&2
|
||||||
|
badExitCode=1
|
||||||
|
}
|
||||||
diffAndAcceptInner "$test" "$actual" "$expected"
|
diffAndAcceptInner "$test" "$actual" "$expected"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user