V.
fb1b211037
It's only used in a couple of tests, and only in such a way that
replacing it with a random command suffices.
I also removed a few pointless uses of the variable.
Fixes: #376
Change-Id: I90aedb61d64b02f7c9b007e72f9d614cc1b37a2e
10 lines
359 B
Bash
10 lines
359 B
Bash
source common.sh
|
|
|
|
sed -e "s|@localstatedir@|$TEST_ROOT/profile-var|g" < ../../scripts/nix-profile.sh.in > $TEST_ROOT/nix-profile.sh
|
|
|
|
user=$(whoami || echo -n nixbld)
|
|
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
|