File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
antlir/antlir2/antlir2_vm/bzl Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ def _impl(ctx: AnalysisContext) -> list[Provider]:
44
44
test_cmd = cmd_args (test_cmd , "--expect-failure" )
45
45
if ctx .attrs .postmortem :
46
46
test_cmd = cmd_args (test_cmd , "--postmortem" )
47
+ if ctx .attrs .dump_eth0 :
48
+ test_cmd = cmd_args (test_cmd , "--dump-eth0-traffic" )
49
+
47
50
test_cmd = cmd_args (
48
51
test_cmd ,
49
52
ctx .attrs .test [ExternalRunnerTestInfo ].test_type ,
@@ -109,6 +112,10 @@ def _impl(ctx: AnalysisContext) -> list[Provider]:
109
112
_vm_test = rule (
110
113
impl = _impl ,
111
114
attrs = {
115
+ "dump_eth0" : attrs .bool (
116
+ doc = "If true, dumps the vm's eth0 traffic to a file. The file location is dictated by testX and uploaded as part of test result" ,
117
+ default = bool (read_config ("antlir2" , "dump_eth0" , False )),
118
+ ),
112
119
"expect_failure" : attrs .bool (
113
120
doc = "If true, VM is expected to timeout or fail early." ,
114
121
),
You can’t perform that action at this time.
0 commit comments