aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcidkidnix <cidkidnix@protonmail.com>2023-07-13 14:17:22 -0500
committercidkidnix <cidkidnix@protonmail.com>2023-07-13 14:18:12 -0500
commit1a13757880479921966adeca839cf182b3ffcbd0 (patch)
treefc2eb594b44821aaf7f08e00b5b8862e56adc3e9
parent84c4e6f0acfc902955d580aa090aa52f20ee82ad (diff)
Add comment regarding the unset of NIX_STORE_DIR
in build-remote.sh and supplementary-groups.sh
-rw-r--r--tests/build-remote.sh1
-rw-r--r--tests/supplementary-groups.sh4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/build-remote.sh b/tests/build-remote.sh
index 78e12b477..d2a2132c1 100644
--- a/tests/build-remote.sh
+++ b/tests/build-remote.sh
@@ -1,6 +1,7 @@
requireSandboxSupport
[[ $busybox =~ busybox ]] || skipTest "no busybox"
+# Avoid store dir being inside sandbox build-dir
unset NIX_STORE_DIR
unset NIX_STATE_DIR
diff --git a/tests/supplementary-groups.sh b/tests/supplementary-groups.sh
index 47c6ef605..474ba7503 100644
--- a/tests/supplementary-groups.sh
+++ b/tests/supplementary-groups.sh
@@ -5,6 +5,10 @@ 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