mirror of
https://github.com/NixOS/nix
synced 2025-07-05 12:21:48 +02:00
Fix --no-sandbox
When sandboxing is disabled, we cannot put $TMPDIR underneath an
inaccessible directory.
(cherry picked from commit d54590fdf3
)
This commit is contained in:
parent
71af23ff18
commit
07b9fae361
2 changed files with 12 additions and 4 deletions
|
@ -46,7 +46,10 @@ test_custom_build_dir() {
|
|||
--no-out-link --keep-failed --option build-dir "$TEST_ROOT/custom-build-dir" 2> $TEST_ROOT/log || status=$?
|
||||
[ "$status" = "100" ]
|
||||
[[ 1 == "$(count "$customBuildDir/nix-build-"*)" ]]
|
||||
local buildDir="$customBuildDir/nix-build-"*"/build"
|
||||
local buildDir="$customBuildDir/nix-build-"*""
|
||||
if [[ -e $buildDir/build ]]; then
|
||||
buildDir=$buildDir/build
|
||||
fi
|
||||
grep $checkBuildId $buildDir/checkBuildId
|
||||
}
|
||||
test_custom_build_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue