aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcidkidnix <cidkidnix@protonmail.com>2023-07-13 14:23:24 -0500
committercidkidnix <cidkidnix@protonmail.com>2023-07-13 14:23:24 -0500
commitadb28d4a26598fbc342dd18d2dd42621953c7b6d (patch)
treefb041217d1a03645db12b4492fb24d61ebd4ec26
parent1a13757880479921966adeca839cf182b3ffcbd0 (diff)
move unset NIX_STORE_DIR in supplementary-groups.sh
to inside the unshare
-rw-r--r--tests/supplementary-groups.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/supplementary-groups.sh b/tests/supplementary-groups.sh
index 474ba7503..d18fb2414 100644
--- a/tests/supplementary-groups.sh
+++ b/tests/supplementary-groups.sh
@@ -5,13 +5,13 @@ requireSandboxSupport
if ! command -p -v unshare; then skipTest "Need unshare"; fi
needLocalStore "The test uses --store always so we would just be bypassing the daemon"
-# Avoid store dir being inside sandbox build-dir
-unset NIX_STORE_DIR
-unset NIX_STATE_DIR
-
unshare --mount --map-root-user bash <<EOF
source common.sh
+ # Avoid store dir being inside sandbox build-dir
+ unset NIX_STORE_DIR
+ unset NIX_STATE_DIR
+
setLocalStore () {
export NIX_REMOTE=\$TEST_ROOT/\$1
mkdir -p \$NIX_REMOTE