From 8a4fe98ec97266ddcb715d355fc56ca2a23dc469 Mon Sep 17 00:00:00 2001 From: Thomas Chung Date: Tue, 25 Dec 2018 17:07:19 +1100 Subject: [PATCH] test: set umask explicitly Some tests which create files and check file permissions assume the umask is compatible with 022, and break when set to something like 007. Explicitly set umask to 022 PR-URL: https://github.com/nodejs/node/pull/25213 Reviewed-By: Rich Trott Reviewed-By: Ben Noordhuis --- tools/test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test.py b/tools/test.py index 8a3aa866132..4a696d082a9 100755 --- a/tools/test.py +++ b/tools/test.py @@ -70,6 +70,7 @@ skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE) VERBOSE = False +os.umask(0o022) os.environ['NODE_OPTIONS'] = '' # ---------------------------------------------