forked from lix-project/lix
move unset NIX_STORE_DIR in supplementary-groups.sh
to inside the unshare
This commit is contained in:
parent
1a13757880
commit
adb28d4a26
|
@ -5,13 +5,13 @@ requireSandboxSupport
|
||||||
if ! command -p -v unshare; then skipTest "Need unshare"; fi
|
if ! command -p -v unshare; then skipTest "Need unshare"; fi
|
||||||
needLocalStore "The test uses --store always so we would just be bypassing the daemon"
|
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
|
unshare --mount --map-root-user bash <<EOF
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
|
# Avoid store dir being inside sandbox build-dir
|
||||||
|
unset NIX_STORE_DIR
|
||||||
|
unset NIX_STATE_DIR
|
||||||
|
|
||||||
setLocalStore () {
|
setLocalStore () {
|
||||||
export NIX_REMOTE=\$TEST_ROOT/\$1
|
export NIX_REMOTE=\$TEST_ROOT/\$1
|
||||||
mkdir -p \$NIX_REMOTE
|
mkdir -p \$NIX_REMOTE
|
||||||
|
|
Loading…
Reference in a new issue