From 7186539711183a06d932dc24c7b26b5306ca9a3f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 13 Apr 2016 10:43:33 -0400 Subject: [PATCH] nix-profile test: Set USER --- tests/nix-profile.sh | 5 +++-- 1 file 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 ]