mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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: https://github.com/nodejs/node/pull/50764 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -17,6 +17,10 @@ const nodeBinary = process.execPath;
|
||||
|
||||
tmpdir.refresh();
|
||||
|
||||
if (!tmpdir.hasEnoughSpace(120 * 1024 * 1024)) {
|
||||
common.skip('Available disk space < 120MB');
|
||||
}
|
||||
|
||||
const appBundlePath = tmpdir.resolve('node_sandboxed.app');
|
||||
const appBundleContentPath = path.join(appBundlePath, 'Contents');
|
||||
const appExecutablePath = path.join(
|
||||
|
||||
Reference in New Issue
Block a user