diff options
Diffstat (limited to 'tests/nix-profile.sh')
-rw-r--r-- | tests/nix-profile.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh index 3586a7efc3c8..2cc3910ba12d 100644 --- a/tests/nix-profile.sh +++ b/tests/nix-profile.sh @@ -1,10 +1,10 @@ source common.sh -home=$TEST_ROOT/home -rm -rf $home -mkdir -p $home -HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh" -HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency +user=$(whoami) +rm -rf $TEST_HOME +mkdir -p $TEST_HOME +USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" +USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency -[ -L $home/.nix-profile ] -[ -e $home/.nix-channels ] +[ -L $TEST_HOME/.nix-profile ] +[ -e $TEST_HOME/.nix-channels ] |