Commit 65ea52b
Replace the flag-forwarding grep heuristic with an explicit table
This fixes run_tests.sh forwarding flags to sub-test scripts by
grepping their source instead of knowing which flags each one accepts.
- The grep matched a flag string in a comment as readily as in real
argument parsing, and never matched at all against the selection
harness's stub scripts, so the forwarding logic was untested.
- Only run_generator_tests.sh accepts --fail-immediately and
--keep-artifacts; run_workflow_tests.sh and run_relval_tests.sh only
accept --help/-h. Forwarding is now a plain case on the sub-test name.
- Extended the stub scripts in the selection harness to record their
received arguments, and added a case asserting --keep-artifacts
reaches the generator stub and not the workflow or relval stubs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 6dbec8d commit 65ea52b
2 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
| |||
0 commit comments