Skip to content

Commit 64b94f9

Browse files
committed
allow passing extra args to the test
1 parent 8a2b2fd commit 64b94f9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

replay_testing/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ def add_arguments(parser):
123123
def parse_arguments():
124124
parser = argparse.ArgumentParser(description='replay integration testing tool.')
125125
add_arguments(parser)
126-
return parser, parser.parse_args()
126+
# Use parse_known_args to allow extra arguments to pass through to the test file
127+
args, unknown = parser.parse_known_args()
128+
# Store unknown args for potential use by test files
129+
args.unknown_args = unknown
130+
return parser, args
127131

128132

129133
def run(parser, args):

0 commit comments

Comments
 (0)