Reduce test verbosity

This commit is contained in:
Eelco Dolstra 2014-08-20 14:21:14 +02:00
parent 954188af27
commit 894fa5e42d

View file

@ -3,7 +3,7 @@
source common.sh source common.sh
failed=0 failed=0
messages="`nix-build timeout.nix --timeout 2 2>&1 || failed=1`" messages="`nix-build -Q timeout.nix --timeout 2 2>&1 || failed=1`"
if [ $failed -ne 0 ]; then if [ $failed -ne 0 ]; then
echo "error: \`nix-store' succeeded; should have timed out" echo "error: \`nix-store' succeeded; should have timed out"
exit 1 exit 1
@ -15,7 +15,7 @@ if ! echo "$messages" | grep -q "timed out"; then
exit 1 exit 1
fi fi
if nix-build timeout.nix --option build-max-log-size 100; then if nix-build -Q timeout.nix --option build-max-log-size 100; then
echo "build should have failed" echo "build should have failed"
exit 1 exit 1
fi fi