@@ -57,7 +57,7 @@ function createRelease(keys, version, platform, assetBytes, options = {}) {
5757 file,
5858 checksumFile : `${ file } .sha256` ,
5959 sha256 : digest ,
60- codeSignature : 'unsigned-snapshot' ,
60+ codeSignature : platform === 'macos' ? 'adhoc-snapshot' : 'unsigned-snapshot' ,
6161 } ;
6262 const manifest = Buffer . from ( `${ JSON . stringify ( {
6363 schemaVersion : options . schemaVersion || 2 ,
@@ -245,6 +245,7 @@ function createPosixHarness(temp, architecture = posixArchitecture, system = pos
245245 writeShim ( 'uname' , 'case "${1:-}" in -s) echo ' + system + ' ;; -m) echo ' + architecture + ' ;; *) echo ' + system + ' ;; esac' ) ;
246246 writeShim ( 'ldd' , 'echo "ldd (GNU libc) 2.31"' ) ;
247247 writeShim ( 'getconf' , 'echo "glibc 2.31"' ) ;
248+ writeShim ( 'codesign' , 'exit 0' ) ;
248249 return { shimDir, installDir } ;
249250}
250251
@@ -797,7 +798,6 @@ test('POSIX installer completes a signed Linux x64 installation against a fake r
797798
798799test ( 'POSIX installer recovers every persisted process-termination state without deleting the legacy binary' ,
799800 { skip : process . platform === 'win32' , timeout : 300000 } , async ( t ) => {
800- if ( ! fs . existsSync ( gitSh ) ) return ;
801801 const temp = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , 'contexa-installer-recovery-posix-' ) ) ;
802802 t . after ( ( ) => fs . rmSync ( temp , { recursive : true , force : true } ) ) ;
803803 const oldBytes = buildPosixCli ( '8.0.0-old' ) ;
@@ -854,7 +854,6 @@ test('POSIX installer recovers every persisted process-termination state without
854854} ) ;
855855test ( 'POSIX installer performs lifecycle and preserves the existing binary for the full fault matrix' ,
856856 { skip : process . platform === 'win32' , timeout : 600000 } , async ( t ) => {
857- if ( ! fs . existsSync ( gitSh ) ) return ;
858857 const temp = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , 'contexa-installer-posix-matrix-' ) ) ;
859858 t . after ( ( ) => fs . rmSync ( temp , { recursive : true , force : true } ) ) ;
860859 const keys = crypto . generateKeyPairSync ( 'rsa' , { modulusLength : 3072 } ) ;
0 commit comments