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:
Garry Tan 2026-08-14 18:40:51 -07:00
parent b3d477bbb5
commit f77bbe7091
No known key found for this signature in database
GPG Key ID: C1F69E85C74EFE1D
1 changed files with 8 additions and 0 deletions

View File

@ -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(() => {