Commit 98c7f6d
committed
fix(test): generalize awk end-anchor to any ${VAR:?...} (agy P3)
agy follow-up review on PR #159 noted that the awk end-anchor was
coupled to the specific variable name PROJECT_ID. If a future edit
reorders the validation block (e.g. validates REPO before PROJECT_ID)
or renames PROJECT_ID, the extraction would fail to terminate and
the test would silently capture wrapper code beyond the init block.
Generalize the regex to '\${[A-Z_]+:\\?' — matches any uppercase
variable name in the `: "${VAR:?...}"` validation idiom that
the wrappers use to gate startup on required config.1 parent 6dfb7d0 commit 98c7f6d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments