diff options
Diffstat (limited to 'test/syscalls/syscall_test_runner.sh')
-rwxr-xr-x | test/syscalls/syscall_test_runner.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/syscalls/syscall_test_runner.sh b/test/syscalls/syscall_test_runner.sh index 4f3790137..87d62786b 100755 --- a/test/syscalls/syscall_test_runner.sh +++ b/test/syscalls/syscall_test_runner.sh @@ -18,10 +18,17 @@ # It exists so that we can build the syscall test runner once, and use it for # all syscall tests, rather than build it for each test run. -set -euf -o pipefail +set -euf -x -o pipefail + +echo -- "$@" + +if [[ -n "${TEST_UNDECLARED_OUTPUTS_DIR}" ]]; then + mkdir -p "${TEST_UNDECLARED_OUTPUTS_DIR}" + chmod a+rwx "${TEST_UNDECLARED_OUTPUTS_DIR}" +fi # Get location of syscall_test_runner binary. -readonly runner=$(find ${TEST_SRCDIR} -name syscall_test_runner) +readonly runner=$(find "${TEST_SRCDIR}" -name syscall_test_runner) # Pass the arguments of this script directly to the runner. exec "${runner}" "$@" |