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:
Nicolas Lacasse
2019-01-09 17:37:52 -08:00
committed by Shentubot
parent 0676843875
commit 6e91a98f6b
2 changed files with 6 additions and 6 deletions
+1 -3
View File
@@ -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",
+5 -3
View File
@@ -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}" "$@"