Fix the nix-profile test
This commit is contained in:
parent
844d83352c
commit
762ef464f8
3 changed files with 3 additions and 3 deletions
|
@ -102,6 +102,7 @@ let
|
|||
installFlags = "sysconfdir=$(out)/etc";
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckFlags = "sysconfdir=$(out)/etc";
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
set -e
|
||||
|
||||
datadir="@datadir@"
|
||||
profiledir="@sysconfdir@/profile.d"
|
||||
|
||||
export TEST_ROOT=$(pwd)/test-tmp
|
||||
export NIX_STORE_DIR
|
||||
|
|
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue