mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
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";
|
installFlags = "sysconfdir=$(out)/etc";
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
installCheckFlags = "sysconfdir=$(out)/etc";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
datadir="@datadir@"
|
datadir="@datadir@"
|
||||||
profiledir="@sysconfdir@/profile.d"
|
|
||||||
|
|
||||||
export TEST_ROOT=$(pwd)/test-tmp
|
export TEST_ROOT=$(pwd)/test-tmp
|
||||||
export NIX_STORE_DIR
|
export NIX_STORE_DIR
|
||||||
|
|
|
@ -3,8 +3,8 @@ source common.sh
|
||||||
home=$TEST_ROOT/home
|
home=$TEST_ROOT/home
|
||||||
rm -rf $home
|
rm -rf $home
|
||||||
mkdir -p $home
|
mkdir -p $home
|
||||||
HOME=$home $SHELL -e -c ". $profiledir/nix.sh"
|
HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh"
|
||||||
HOME=$home $SHELL -e -c ". $profiledir/nix.sh" # test idempotency
|
HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency
|
||||||
|
|
||||||
[ -L $home/.nix-profile ]
|
[ -L $home/.nix-profile ]
|
||||||
[ -e $home/.nix-channels ]
|
[ -e $home/.nix-channels ]
|
||||||
|
|
Loading…
Reference in a new issue