Fix the nix-profile test

This commit is contained in:
Eelco Dolstra 2014-02-01 15:37:50 +01:00
parent 844d83352c
commit 762ef464f8
3 changed files with 3 additions and 3 deletions

View file

@ -102,6 +102,7 @@ let
installFlags = "sysconfdir=$(out)/etc";
doInstallCheck = true;
installCheckFlags = "sysconfdir=$(out)/etc";
});

View file

@ -1,7 +1,6 @@
set -e
datadir="@datadir@"
profiledir="@sysconfdir@/profile.d"
export TEST_ROOT=$(pwd)/test-tmp
export NIX_STORE_DIR

View file

@ -3,8 +3,8 @@ source common.sh
home=$TEST_ROOT/home
rm -rf $home
mkdir -p $home
HOME=$home $SHELL -e -c ". $profiledir/nix.sh"
HOME=$home $SHELL -e -c ". $profiledir/nix.sh" # test idempotency
HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh"
HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency
[ -L $home/.nix-profile ]
[ -e $home/.nix-channels ]