diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30T12·53+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30T13·18+0200 |
commit | bac123ddd9eaecb9044f7d7c9572f77825a18ad5 (patch) | |
tree | 51293a222a745d0cfa4dd00fe5d63956e9baf170 /tests/nix-channel.sh | |
parent | 3593c8285dec644f07156496fd8cd84ef70ec665 (diff) |
Test the NAR info cache
Diffstat (limited to 'tests/nix-channel.sh')
-rw-r--r-- | tests/nix-channel.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/nix-channel.sh b/tests/nix-channel.sh index c538afd606be..2ec986dd415b 100644 --- a/tests/nix-channel.sh +++ b/tests/nix-channel.sh @@ -2,18 +2,15 @@ source common.sh clearProfiles -rm -f $TEST_ROOT/.nix-channels - -# Override location of ~/.nix-channels. -export HOME=$TEST_ROOT +rm -f $TEST_HOME/.nix-channels $TEST_HOME/.nix-profile # Test add/list/remove. nix-channel --add http://foo/bar xyzzy nix-channel --list | grep -q http://foo/bar nix-channel --remove xyzzy -[ -e $TEST_ROOT/.nix-channels ] -[ "$(cat $TEST_ROOT/.nix-channels)" = '' ] +[ -e $TEST_HOME/.nix-channels ] +[ "$(cat $TEST_HOME/.nix-channels)" = '' ] # Create a channel. rm -rf $TEST_ROOT/foo @@ -41,10 +38,8 @@ grep -q 'item.*attrPath="foo".*name="dependencies"' $TEST_ROOT/meta.xml nix-env -i dependencies [ -e $TEST_ROOT/var/nix/profiles/default/foobar ] - - clearProfiles -rm -f $TEST_ROOT/.nix-channels +rm -f $TEST_HOME/.nix-channels # Test updating from a tarball nix-channel --add file://$TEST_ROOT/foo/nixexprs.tar.bz2 foo |