* Refactoring: remove unnecessary variables from the tests.
This commit is contained in:
parent
cd6d02c366
commit
8af7d766f0
33 changed files with 220 additions and 235 deletions
|
|
@ -2,7 +2,7 @@ source common.sh
|
|||
|
||||
clearStore
|
||||
|
||||
(cd $TEST_ROOT && $nixbuild ../dependencies.nix)
|
||||
(cd $TEST_ROOT && nix-build ../dependencies.nix)
|
||||
test "$(cat $TEST_ROOT/result/foobar)" = FOOBAR
|
||||
|
||||
# The result should be retained by a GC.
|
||||
|
|
@ -10,10 +10,10 @@ echo A
|
|||
target=$(readLink $TEST_ROOT/result)
|
||||
echo B
|
||||
echo target is $target
|
||||
$nixstore --gc
|
||||
nix-store --gc
|
||||
test -e $target/foobar
|
||||
|
||||
# But now it should be gone.
|
||||
rm $TEST_ROOT/result
|
||||
$nixstore --gc
|
||||
nix-store --gc
|
||||
if test -e $target/foobar; then false; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue