diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/syscalls/build_defs.bzl | 4 | ||||
-rwxr-xr-x | test/syscalls/syscall_test_runner.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/syscalls/build_defs.bzl b/test/syscalls/build_defs.bzl index f0c914095..d6c2a1290 100644 --- a/test/syscalls/build_defs.bzl +++ b/test/syscalls/build_defs.bzl @@ -34,9 +34,7 @@ def _syscall_test(test, shard_count, size, platform): test, ], args = [ - # First argument is location to syscall_test_runner go binary. - "$(location :syscall_test_runner)", - # Rest of arguments are passed directly to syscall_test_runner binary. + # Arguments are passed directly to syscall_test_runner binary. "--test-name=" + test_name, "--platform=" + platform, "--debug=false", diff --git a/test/syscalls/syscall_test_runner.sh b/test/syscalls/syscall_test_runner.sh index de479f68c..4f3790137 100755 --- a/test/syscalls/syscall_test_runner.sh +++ b/test/syscalls/syscall_test_runner.sh @@ -20,6 +20,8 @@ set -euf -o pipefail -# The syscall test runner binary and arguments have all been passed as arguments -# to this shell script. -exec "$@" +# Get location of syscall_test_runner binary. +readonly runner=$(find ${TEST_SRCDIR} -name syscall_test_runner) + +# Pass the arguments of this script directly to the runner. +exec "${runner}" "$@" |