Skip to content

Commit 34167ee

Browse files
joyeecheungRafaelGSS
authored andcommitted
test: skip parallel/test-macos-app-sandbox if disk space < 120MB
It needs to copy the Node.js binary which is currently almost 100MB. To be safe, skip the test when the available disk space is smaller than 120MB. PR-URL: #50764 Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6b979f5 commit 34167ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const nodeBinary = process.execPath;
1717

1818
tmpdir.refresh();
1919

20+
if (!tmpdir.hasEnoughSpace(120 * 1024 * 1024)) {
21+
common.skip('Available disk space < 120MB');
22+
}
23+
2024
const appBundlePath = tmpdir.resolve('node_sandboxed.app');
2125
const appBundleContentPath = path.join(appBundlePath, 'Contents');
2226
const appExecutablePath = path.join(

0 commit comments

Comments
 (0)