tests/functional/lang: Avoid /usr/bin/env for sandbox

This commit is contained in:
Robert Hensing 2024-07-16 22:43:04 +02:00
parent f9a1d6b018
commit 7dce074634
2 changed files with 5 additions and 2 deletions

View File

@ -54,8 +54,11 @@ badExitCode=0
postprocess() {
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;
"lang/$1.postprocess" "lang/$1"
bash "lang/$1.postprocess" "lang/$1"
)
fi
}

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shellcheck shell=bash
set -euo pipefail
testcaseBasename=$1