mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
Update tests/functional/common/functions.sh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Co-authored-by: bryango <bryango@users.noreply.github.com>
(cherry picked from commit da7f7ba810
)
16 lines
493 B
Bash
Executable file
16 lines
493 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
source common.sh
|
|
# This test is run by `tests/functional/nested-sandboxing/runner.nix` in an extra layer of sandboxing.
|
|
[[ -d /nix/store ]] || skipTest "running this test without Nix's deps being drawn from /nix/store is not yet supported"
|
|
|
|
TODO_NixOS
|
|
|
|
requireSandboxSupport
|
|
requiresUnprivilegedUserNamespaces
|
|
|
|
source ./nested-sandboxing/command.sh
|
|
|
|
expectStderr 100 runNixBuild badStoreUrl 2 | grepQuiet '`sandbox-build-dir` must not contain'
|
|
|
|
runNixBuild goodStoreUrl 5
|