Skip to content

Commit d939f7f

Browse files
committed
test: log codesign result (ci debug)
1 parent 3cb770e commit d939f7f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

test/parallel/test-macos-app-sandbox.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,19 @@ fs.copyFileSync(
3838

3939

4040
// Sign the app bundle with sandbox entitlements:
41-
assert.strictEqual(
42-
child_process.spawnSync('/usr/bin/codesign', [
41+
const codesignResult = child_process.spawnSync(
42+
'/usr/bin/codesign',
43+
[
4344
'--entitlements', fixtures.path(
4445
'macos-app-sandbox', 'node_sandboxed.entitlements'),
4546
'-s', '-',
4647
appBundlePath
47-
]).status,
48-
0);
48+
])
49+
50+
console.error(codesignResult)
51+
console.error(codesignResult.stdout?.toString())
52+
console.error(codesignResult.stderr?.toString())
53+
assert.strictEqual(codesignResult.status, 0);
4954

5055
// Sandboxed app shouldn't be able to read the home dir
5156
assert.notStrictEqual(

0 commit comments

Comments
 (0)