nix-profile test: Set USER
This commit is contained in:
parent
1b3e704fb9
commit
7186539711
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
home=$TEST_ROOT/home
|
home=$TEST_ROOT/home
|
||||||
|
user=$(whoami)
|
||||||
rm -rf $home
|
rm -rf $home
|
||||||
mkdir -p $home
|
mkdir -p $home
|
||||||
HOME=$home $SHELL -e -c ". ../scripts/nix-profile.sh"
|
HOME=$home USER=$user $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" # test idempotency
|
||||||
|
|
||||||
[ -L $home/.nix-profile ]
|
[ -L $home/.nix-profile ]
|
||||||
[ -e $home/.nix-channels ]
|
[ -e $home/.nix-channels ]
|
||||||
|
|
Loading…
Reference in a new issue