mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
shellcheck fix: tests/functional/nested-sandboxing.sh
This commit is contained in:
parent
e26b0c66b0
commit
1a71c1ef9f
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,6 @@
|
|||
enable = true;
|
||||
excludes = [
|
||||
# We haven't linted these files yet
|
||||
''^tests/functional/nested-sandboxing\.sh$''
|
||||
''^tests/functional/nested-sandboxing/command\.sh$''
|
||||
''^tests/functional/nix-build\.sh$''
|
||||
''^tests/functional/nix-channel\.sh$''
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ requiresUnprivilegedUserNamespaces
|
|||
|
||||
start="$TEST_ROOT/start"
|
||||
mkdir -p "$start"
|
||||
cp -r common common.sh ${config_nix} ./nested-sandboxing "$start"
|
||||
cp -r common common.sh "${config_nix}" ./nested-sandboxing "$start"
|
||||
cp "${_NIX_TEST_BUILD_DIR}/common/subst-vars.sh" "$start/common"
|
||||
# N.B. redefine
|
||||
_NIX_TEST_SOURCE_DIR="$start"
|
||||
|
|
@ -20,6 +20,7 @@ cd "$start"
|
|||
|
||||
source ./nested-sandboxing/command.sh
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
expectStderr 100 runNixBuild badStoreUrl 2 | grepQuiet '`sandbox-build-dir` must not contain'
|
||||
|
||||
runNixBuild goodStoreUrl 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue