diff options
author | Eyal Soha <eyalsoha@google.com> | 2020-02-05 11:17:14 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-05 11:18:02 -0800 |
commit | 37abbbc547d9d78e0bf42f192403c8eca30593d8 (patch) | |
tree | 3d0e58e37ca49ee01f2c5e7bbaa595db17591ea8 /test/packetdrill/defs.bzl | |
parent | 665b614e4a6e715bac25bea15c5c29184016e549 (diff) |
Add packetdrill tests to presubmit and CI testing
PiperOrigin-RevId: 293409718
Diffstat (limited to 'test/packetdrill/defs.bzl')
-rw-r--r-- | test/packetdrill/defs.bzl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/packetdrill/defs.bzl b/test/packetdrill/defs.bzl index 582f97e0c..8623ce7b1 100644 --- a/test/packetdrill/defs.bzl +++ b/test/packetdrill/defs.bzl @@ -15,7 +15,7 @@ def _packetdrill_test_impl(ctx): # Make sure that everything is readable here. "find . -type f -exec chmod a+rx {} \\;", "find . -type d -exec chmod a+rx {} \\;", - "%s %s --init_script %s -- %s\n" % ( + "%s %s --init_script %s $@ -- %s\n" % ( test_runner.short_path, " ".join(ctx.attr.flags), ctx.files._init_script[0].short_path, @@ -76,7 +76,9 @@ def packetdrill_netstack_test(name, **kwargs): kwargs["tags"] = _PACKETDRILL_TAGS _packetdrill_test( name = name + "_netstack_test", - flags = ["--dut_platform", "netstack"], + # 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 ) |