Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: log codesign result (ci debug)
  • Loading branch information
branchseer committed Jun 19, 2020
commit d939f7f344e638d8390cdb767038338dde9c670f
13 changes: 9 additions & 4 deletions test/parallel/test-macos-app-sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,19 @@ fs.copyFileSync(


// Sign the app bundle with sandbox entitlements:
assert.strictEqual(
child_process.spawnSync('/usr/bin/codesign', [
const codesignResult = child_process.spawnSync(
'/usr/bin/codesign',
[
'--entitlements', fixtures.path(
'macos-app-sandbox', 'node_sandboxed.entitlements'),
'-s', '-',
appBundlePath
]).status,
0);
])

console.error(codesignResult)
console.error(codesignResult.stdout?.toString())
console.error(codesignResult.stderr?.toString())
assert.strictEqual(codesignResult.status, 0);

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