Define name earlier

PiperOrigin-RevId: 228805981
Change-Id: I4f4c4a5d8de325dff38f6dfb92108fc848d823fd
This commit is contained in:
Michael Pratt
2019-01-10 17:16:36 -08:00
committed by Shentubot
parent 7f8de3bf92
commit bde588ff05
+3 -1
View File
@@ -13,6 +13,8 @@ def _syscall_test(test, shard_count, size, platform):
# Prepend "runsc" to non-native platform names.
full_platform = platform if platform == "native" else "runsc_" + platform
name = test_name + "_" + full_platform
# Add the full_platform in a tag to make it easier to run all the tests on
# a specific platform.
tags = [full_platform]
@@ -28,7 +30,7 @@ def _syscall_test(test, shard_count, size, platform):
sh_test(
srcs = ["syscall_test_runner.sh"],
name = test_name + "_" + full_platform,
name = name,
data = [
":syscall_test_runner",
test,