summaryrefslogtreecommitdiffhomepage
path: root/test/packetdrill/defs.bzl
diff options
context:
space:
mode:
authorEyal Soha <eyalsoha@google.com>2020-03-06 11:22:55 -0800
committergVisor bot <gvisor-bot@google.com>2020-03-06 11:24:11 -0800
commit20170d4fd5c26def584664762f4e639f0b43ff6e (patch)
treebbaae9b2bcfa6c301fd68d17aab90c013f5530b3 /test/packetdrill/defs.bzl
parent006e2223a4874771a3a9237c7fb7caa1bb3264f6 (diff)
Move packetdrill tests to open-source
PiperOrigin-RevId: 299396286
Diffstat (limited to 'test/packetdrill/defs.bzl')
-rw-r--r--test/packetdrill/defs.bzl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/packetdrill/defs.bzl b/test/packetdrill/defs.bzl
index 8623ce7b1..f499c177b 100644
--- a/test/packetdrill/defs.bzl
+++ b/test/packetdrill/defs.bzl
@@ -66,7 +66,7 @@ def packetdrill_linux_test(name, **kwargs):
if "tags" not in kwargs:
kwargs["tags"] = _PACKETDRILL_TAGS
_packetdrill_test(
- name = name + "_linux_test",
+ name = name,
flags = ["--dut_platform", "linux"],
**kwargs
)
@@ -75,13 +75,13 @@ def packetdrill_netstack_test(name, **kwargs):
if "tags" not in kwargs:
kwargs["tags"] = _PACKETDRILL_TAGS
_packetdrill_test(
- name = name + "_netstack_test",
+ name = name,
# This is the default runtime unless
# "--test_arg=--runtime=OTHER_RUNTIME" is used to override the value.
flags = ["--dut_platform", "netstack", "--runtime", "runsc-d"],
**kwargs
)
-def packetdrill_test(**kwargs):
- packetdrill_linux_test(**kwargs)
- packetdrill_netstack_test(**kwargs)
+def packetdrill_test(name, **kwargs):
+ packetdrill_linux_test(name + "_linux_test", **kwargs)
+ packetdrill_netstack_test(name + "_netstack_test", **kwargs)