diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-10-10T21·32+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-10-10T21·32+0000 |
commit | 8af7d766f0244d5b15d89ab2d2d66b0d63e8f576 (patch) | |
tree | 3346cb494de0bf35403d812efd8b757595cd44d6 /tests/gc-runtime.sh | |
parent | cd6d02c366af43bccdd2ef345193e4fdeca78a13 (diff) |
* Refactoring: remove unnecessary variables from the tests.
Diffstat (limited to 'tests/gc-runtime.sh')
-rw-r--r-- | tests/gc-runtime.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gc-runtime.sh b/tests/gc-runtime.sh index 7a50f9f41b71..df662bd0ea90 100644 --- a/tests/gc-runtime.sh +++ b/tests/gc-runtime.sh @@ -12,9 +12,9 @@ set -m # enable job control, needed for kill profiles="$NIX_STATE_DIR"/profiles rm -f $profiles/* -$nixenv -p $profiles/test -f ./gc-runtime.nix -i gc-runtime +nix-env -p $profiles/test -f ./gc-runtime.nix -i gc-runtime -outPath=$($nixenv -p $profiles/test -q --no-name --out-path gc-runtime) +outPath=$(nix-env -p $profiles/test -q --no-name --out-path gc-runtime) echo $outPath echo "backgrounding program..." @@ -23,12 +23,12 @@ sleep 2 # hack - wait for the program to get started child=$! echo PID=$child -$nixenv -p $profiles/test -e gc-runtime -$nixenv -p $profiles/test --delete-generations old +nix-env -p $profiles/test -e gc-runtime +nix-env -p $profiles/test --delete-generations old cp $TOP/scripts/find-runtime-roots.pl $TEST_ROOT/foo.pl chmod +x $TEST_ROOT/foo.pl -NIX_ROOT_FINDER=$TEST_ROOT/foo.pl $nixstore --gc +NIX_ROOT_FINDER=$TEST_ROOT/foo.pl nix-store --gc kill -- -$child |