Commit df7bf1c
committed
gh: fix native-cmd PATH-truncation regression check
The padding added to reproduce a large pre-existing PATH appended
onto the runner's own already large inherited PATH instead of
replacing it, pushing the total past the 8191-character command line
length limit of cmd.exe and making INSTALL.bat fail outright with
"The input line is too long" before it even reached the code this
check is meant to exercise. Replace the PATH instead of extending it,
keeping its length controlled and safely between the two limits.
Also drop the bin-directory-in-persisted-PATH check added to
TESTINSTALL.bat: that script is also invoked, to test the cmd shell
environment, by TESTINSTALL_PWSH.ps1 after INSTALL_PWSH.bat, which
intentionally never touches the system PATH, so the check does not
hold there. Move it into the native-cmd job's dedicated verification
step instead, where it is only asserted after the plain INSTALL.bat
flow that is supposed to persist it.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>1 parent d27c45e commit df7bf1c
3 files changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 17 | | |
27 | 18 | | |
28 | 19 | | |
| |||
0 commit comments