Commit 9cab53f
committed
test: use DGR_TEST_GH_PATH to mock missing gh executable
Instead of destructively replacing the PATH on Windows to hide the `gh` executable—which caused Rust 1.77.2 to fail spawning `git` due to implicit extension resolution changes—this commit adds a `DGR_TEST_GH_PATH` environment variable for testing. The test now injects a nonexistent path to cleanly simulate a missing `gh` CLI without breaking access to system executables like `git`.1 parent b794c8a commit 9cab53f
2 files changed
+11
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
500 | 499 | | |
501 | 500 | | |
502 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
503 | 506 | | |
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
508 | 515 | | |
509 | 516 | | |
510 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 873 | + | |
| 874 | + | |
883 | 875 | | |
884 | 876 | | |
885 | 877 | | |
| |||
0 commit comments