Skip to content

Commit bc52885

Browse files
committed
add --collect-must-gather mock option
1 parent 7c4f0cf commit bc52885

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def pytest_addoption(parser: Parser) -> None:
3232
buckets_group = parser.getgroup(name="Buckets")
3333
runtime_group = parser.getgroup(name="Runtime details")
3434
upgrade_group = parser.getgroup(name="Upgrade options")
35+
must_gather_group = parser.getgroup(name="MustGather")
3536

3637
# AWS config and credentials options
3738
aws_group.addoption(
@@ -112,6 +113,12 @@ def pytest_addoption(parser: Parser) -> None:
112113
help="Coma-separated str; specify inference service deployment modes tests to run in upgrade tests. "
113114
"If not set, all will be tested.",
114115
)
116+
must_gather_group.addoption(
117+
"--collect-must-gather",
118+
help="Indicate if must-gather should be collected on failure.",
119+
action="store_true",
120+
default=False,
121+
)
115122

116123

117124
def pytest_cmdline_main(config: Any) -> None:

0 commit comments

Comments
 (0)