diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-05-14 18:16:10 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-14 18:17:33 -0700 |
commit | 326abf5e3643f954a295a8bbfaa6f6a47db59767 (patch) | |
tree | ca8bf557aecb58840f6a07f45c08ddfcbfc7bc0a /test/packetimpact/tests/defs.bzl | |
parent | f589a85889c815cebac624122aebe14c8263a574 (diff) |
Internal change.
PiperOrigin-RevId: 311645222
Diffstat (limited to 'test/packetimpact/tests/defs.bzl')
-rw-r--r-- | test/packetimpact/tests/defs.bzl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/packetimpact/tests/defs.bzl b/test/packetimpact/tests/defs.bzl index 27c5de375..45dce64ab 100644 --- a/test/packetimpact/tests/defs.bzl +++ b/test/packetimpact/tests/defs.bzl @@ -106,15 +106,15 @@ def packetimpact_netstack_test( **kwargs ) -def packetimpact_go_test(name, size = "small", pure = True, linux = True, netstack = True, **kwargs): +def packetimpact_go_test(name, size = "small", pure = True, expect_linux_failure = False, expect_netstack_failure = False, **kwargs): """Add packetimpact tests written in go. Args: name: name of the test size: size of the test pure: make a static go binary - linux: generate a linux test - netstack: generate a netstack test + expect_linux_failure: expect the test to fail for Linux + expect_netstack_failure: expect the test to fail for Netstack **kwargs: all the other args, forwarded to go_test """ testbench_binary = name + "_test" @@ -127,11 +127,11 @@ def packetimpact_go_test(name, size = "small", pure = True, linux = True, netsta ) packetimpact_linux_test( name = name, - expect_failure = not linux, + expect_failure = expect_linux_failure, testbench_binary = testbench_binary, ) packetimpact_netstack_test( name = name, - expect_failure = not netstack, + expect_failure = expect_netstack_failure, testbench_binary = testbench_binary, ) |