2522757e83
This is already done by the installer, so no need to do it again. (cherry picked from commit 26762ceb8629af95300c0cc8c372a99282060dc1)
11 lines
402 B
Bash
11 lines
402 B
Bash
source common.sh
|
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" -e "s|@coreutils@|$coreutils|g" < ../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh
|
|
|
|
user=$(whoami)
|
|
rm -rf $TEST_HOME $TEST_ROOT/profile-var
|
|
mkdir -p $TEST_HOME
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh; set"
|
|
USER=$user $SHELL -e -c ". $TEST_ROOT/nix-profile.sh" # test idempotency
|
|
|
|
[ -L $TEST_HOME/.nix-profile ]
|