* Refactoring: remove unnecessary variables from the tests.

This commit is contained in:
Eelco Dolstra 2011-10-10 21:32:34 +00:00
parent cd6d02c366
commit 8af7d766f0
33 changed files with 220 additions and 235 deletions

View file

@ -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