@@ -26,6 +26,13 @@ def get_parser() -> ArgumentParser: # pragma: no cover
26
26
parser_record = sub_parsers .add_parser (
27
27
"record" , help = "record data from running the test benches"
28
28
)
29
+ parser_interactive = sub_parsers .add_parser (
30
+ "interactive" , help = "show the interactive TUI"
31
+ )
32
+ sub_parsers .add_parser (
33
+ "report" , help = "report analysis about completed test bench runs"
34
+ )
35
+
29
36
parser_record .add_argument (
30
37
"-d" ,
31
38
"--dry-run" ,
@@ -38,21 +45,13 @@ def get_parser() -> ArgumentParser: # pragma: no cover
38
45
action = "store_true" ,
39
46
help = "wait for the submitted jobs to finish to exit" ,
40
47
)
41
- parser_record .add_argument (
42
- "-nc" ,
43
- "--no-clobber" ,
44
- action = "store_true" ,
45
- help = "don't delete any previous run results of the test benches" ,
46
- )
47
- parser_report = sub_parsers .add_parser (
48
- "report" , help = "report analysis about completed test bench runs"
49
- )
50
- parser_report .add_argument (
51
- "-i" ,
52
- "--interactive" ,
53
- action = "store_true" ,
54
- help = "show the interactive TUI" ,
55
- )
48
+ for sub_parser in (parser_record , parser_interactive ):
49
+ sub_parser .add_argument (
50
+ "-nc" ,
51
+ "--no-clobber" ,
52
+ action = "store_true" ,
53
+ help = "don't delete any previous run results of the test benches" ,
54
+ )
56
55
return parser
57
56
58
57
@@ -65,7 +64,9 @@ def main() -> None: # pragma: no cover
65
64
test_plan .record_all (args )
66
65
67
66
elif args .command == "report" :
68
- if args .interactive :
69
- UserInterface (test_plan , args ).run ()
70
- else :
71
- test_plan .report_all (args )
67
+ test_plan .report_all (args )
68
+
69
+ else :
70
+ args .dry_run = False
71
+ args .wait = False
72
+ UserInterface (test_plan , args ).run ()
0 commit comments