Commit 5ef25c1
committed
test(e2e): read the cache root from mcpp, not from a bash re-derivation
170 asserted the staging source lived under ${MCPP_HOME:-$HOME/.mcpp}/build-cache/v1.
That re-derivation is wrong for a SELF-CONTAINED install, where the unpacked tree
itself is the home — the shape of every release tarball and every
`xlings install mcpp`. Running the suite against the released 2026.7.30.2 binary
therefore failed the test while the binary was correct:
FAIL: std BMI cache is '<tarball>/build-cache/v1/std/...',
expected under '/home/speak/.mcpp/build-cache/v1/std'
CI never saw it because the binary under test lives at target/<triple>/<fp>/bin/mcpp,
which mcpp.home::root() deliberately disqualifies from self-contained detection.
The root now comes from `mcpp cache dir`, which exists precisely so "where is the
cache" has one answer. Verified passing against both shapes: the released tarball
binary and a dev build.1 parent 3fec883 commit 5ef25c1
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | | - | |
64 | | - | |
| 73 | + | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
0 commit comments