Skip to content

Commit b2256b6

Browse files
committed
test: canonicalize macos installer fixtures
1 parent c3e9dc7 commit b2256b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/installer-runtime.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function createPosixHarness(temp, architecture = posixArchitecture, system = pos
246246
writeShim('ldd', 'echo "ldd (GNU libc) 2.31"');
247247
writeShim('getconf', 'echo "glibc 2.31"');
248248
writeShim('codesign', 'exit 0');
249-
return { shimDir, installDir };
249+
return { shimDir: fs.realpathSync(shimDir), installDir: fs.realpathSync(installDir) };
250250
}
251251

252252
function posixInstallerEnv(base, harness, publicKeyPath, version = '') {
@@ -911,7 +911,7 @@ test('POSIX installer performs lifecycle and preserves the existing binary for t
911911

912912
async function assertPreserved(label, handler, releaseFiles, options = {}) {
913913
for (let iteration = 1; iteration <= faultRepeats; iteration += 1) {
914-
const harness = createPosixHarness(path.join(temp, `${label}-${iteration}`), options.architecture || 'x86_64');
914+
const harness = createPosixHarness(path.join(temp, `${label}-${iteration}`), options.architecture || posixArchitecture);
915915
const installed = path.join(harness.installDir, 'contexa');
916916
fs.writeFileSync(installed, oldBinary, { mode: 0o755 });
917917
const before = sha256(fs.readFileSync(installed));

0 commit comments

Comments
 (0)