mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Avoid $(location) in syscall tests.
Instead just find the syscall_test_runner binary in the shell script. PiperOrigin-RevId: 228621230 Change-Id: I274ee0874e47d53f59474b1ac730ee45e3dff977
This commit is contained in:
committed by
Shentubot
parent
0676843875
commit
6e91a98f6b
@@ -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",
|
||||
|
||||
@@ -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}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user