diff options
author | Shea Levy <shea@shealevy.com> | 2016-04-13 10:43:33 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-04-13 10:43:33 -0400 |
commit | 7186539711183a06d932dc24c7b26b5306ca9a3f (patch) | |
tree | 6d0bc45ce4b6d7c26a31633371ef1506fca271c1 | |
parent | 1b3e704fb9d4847965334e63b764f1cc7c1363c4 (diff) |
nix-profile test: Set USER
-rw-r--r-- | tests/nix-profile.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh index 3586a7efc..db1edd73e 100644 --- a/tests/nix-profile.sh +++ b/tests/nix-profile.sh @@ -1,10 +1,11 @@ source common.sh home=$TEST_ROOT/home +user=$(whoami) 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 +HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" +HOME=$home USER=$user $SHELL -e -c ". ../scripts/nix-profile.sh" # test idempotency [ -L $home/.nix-profile ] [ -e $home/.nix-channels ] |