Commit 8700f30
committed
Drive cmd.Env from t.Setenv in endtoend tests
Mirror how the real CLI populates cmd.Env: t.Setenv every entry from
exec.json's Env map and then call opts.DebugFromEnv/ExperimentFromEnv.
This generalises to any env var a test wants to set (not just
SQLCDEBUG/SQLCEXPERIMENT) and keeps the test path closer to the
production code path.
https://claude.ai/code/session_01RCzB2JR5Y5ScFDUmwcxGVZ1 parent 454dd7a commit 8700f30
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
341 | 344 | | |
342 | 345 | | |
343 | | - | |
344 | | - | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
0 commit comments