mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Fix tests
So all these years I was totally deluded about the meaning of "set -e". You might think that it causes statements like "false && true" or "! true" to fail, but it doesn't...
This commit is contained in:
parent
809ca33806
commit
3f80060500
9 changed files with 20 additions and 26 deletions
|
@ -3,7 +3,6 @@ source common.sh
|
|||
clearStore
|
||||
|
||||
# Produce an escaped log file.
|
||||
set -x
|
||||
path=$(nix-build --log-type escapes -vv dependencies.nix --no-out-link 2> $TEST_ROOT/log.esc)
|
||||
|
||||
# Convert it to an XML representation.
|
||||
|
@ -20,6 +19,6 @@ fi
|
|||
# Test compressed logs.
|
||||
clearStore
|
||||
rm -rf $NIX_LOG_DIR
|
||||
! nix-store -l $path
|
||||
(! nix-store -l $path)
|
||||
nix-build dependencies.nix --no-out-link --option build-compress-log true
|
||||
[ "$(nix-store -l $path)" = FOO ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue