mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
tests/functional/lang: Avoid /usr/bin/env for sandbox
This commit is contained in:
parent
f9a1d6b018
commit
7dce074634
@ -54,8 +54,11 @@ badExitCode=0
|
|||||||
postprocess() {
|
postprocess() {
|
||||||
if [[ -e "lang/$1.postprocess" ]]; then
|
if [[ -e "lang/$1.postprocess" ]]; then
|
||||||
(
|
(
|
||||||
|
# We could allow arbitrary interpreters in .postprocess, but that
|
||||||
|
# just exposes us to the complexity of not having /usr/bin/env in
|
||||||
|
# the sandbox. So let's just hardcode bash for now.
|
||||||
set -x;
|
set -x;
|
||||||
"lang/$1.postprocess" "lang/$1"
|
bash "lang/$1.postprocess" "lang/$1"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
2
tests/functional/lang/eval-fail-derivation-name.postprocess
Executable file → Normal file
2
tests/functional/lang/eval-fail-derivation-name.postprocess
Executable file → Normal file
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
# shellcheck shell=bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
testcaseBasename=$1
|
testcaseBasename=$1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user