mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 22:48:57 +02:00
test(update-check): fixture links gstack-egress-lib.sh — all 38 tests failed on main
v1.63.0.0 made bin/gstack-update-check source bin/gstack-egress-lib.sh unconditionally, but the test fixture's GSTACK_DIR only linked gstack-config — every test died at the source line (0/38 pass on pristine main, verified). The suite-truncation bug hid it: the runner was killed by an earlier file's delayed process.exit before this file ran. Link the lib like the real install layout the script assumes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
b3d477bbb5
commit
f77bbe7091
@@ -42,6 +42,14 @@ beforeEach(() => {
|
||||
const binDir = join(gstackDir, 'bin');
|
||||
mkdirSync(binDir);
|
||||
symlinkSync(join(import.meta.dir, '..', '..', 'bin', 'gstack-config'), join(binDir, 'gstack-config'));
|
||||
// v1.63+: the script sources bin/gstack-egress-lib.sh unconditionally
|
||||
// (receipted fetch helpers). A real install always has it beside
|
||||
// gstack-config; without this link every test failed at the source line —
|
||||
// masked until the suite-truncation fix because the runner died first.
|
||||
symlinkSync(
|
||||
join(import.meta.dir, '..', '..', 'bin', 'gstack-egress-lib.sh'),
|
||||
join(binDir, 'gstack-egress-lib.sh'),
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user