test: force resigning of app

In the GitHub Actions CI, test-macos-app-sandbox.js can fail due
to the application already being signed. This commit updates
the test to handle that condition.

Refs: https://github.com/nodejs/node/pull/33944
PR-URL: https://github.com/nodejs/node/pull/34331
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
cjihrig authored and Myles Borins committed 2020-07-27 18:13:04 -04:00
1 parent 7d058a4c01
commit cd35d00518
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ assert.strictEqual(
child_process.spawnSync('/usr/bin/codesign', [
'--entitlements', fixtures.path(
'macos-app-sandbox', 'node_sandboxed.entitlements'),
'-s', '-',
'--force', '-s', '-',
appBundlePath
]).status,
0);