@@ -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
252252function 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