commit 110fbcca9df81964c6c20463b53820942d0c3fd9
parent 2aac51e40e87b33f5b070088d0c5df43913ecd47
Author: triesap <tyson@radroots.org>
Date: Mon, 5 Oct 2026 19:56:38 +0000
test: stabilize command fixture execution (HCP-019)
- Run the fake package manager through the installed shell binary.
- Preserve exact argument, directory, network and failure observations.
- Keep the production doctor deadline and all six command assertions.
- Requalify the reviewed successor without rewriting earlier evidence.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/tests/provenance/commands.test.mjs b/web/tests/provenance/commands.test.mjs
@@ -31,10 +31,11 @@ async function fixture(t) {
);
await symlink(process.execPath, path.join(root, 'bin/node'));
const log = path.join(root, 'calls.frames');
+ await symlink('/bin/sh', path.join(root, 'bin/corepack'));
await writeFile(
- path.join(root, 'bin/corepack'),
+ path.join(root, 'web/pnpm'),
`#!/bin/sh
-printf '%s\\0' "$PWD" "\${COREPACK_ENABLE_NETWORK-}" "$#" "$@" >> "$HC_COMMAND_LOG"
+printf '%s\\0' "$PWD" "\${COREPACK_ENABLE_NETWORK-}" "$(( $# + 1 ))" "$0" "$@" >> "$HC_COMMAND_LOG"
version=false
failed=false
for argument do
@@ -47,7 +48,7 @@ elif [ "$failed" = true ]; then
exit 37
fi
`,
- { mode: 0o755 }
+ { mode: 0o644 }
);
const env = {
...process.env,