From ee592c35623d6108f3cc64aaf8322f2e261bdb42 Mon Sep 17 00:00:00 2001 From: Thomas Chung Date: Tue, 25 Dec 2018 17:07:19 +1100 Subject: 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(+) (limited to 'tools') diff --git a/tools/test.py b/tools/test.py index 738997d584..0a2ca193d7 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'] = '' # --------------------------------------------- -- cgit v1.2.3