From 973b32d3c303ca5b4b5385a9a65da55e5124b9bc 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 738997d58408ce..0a2ca193d719e8 100755 --- a/tools/test.py +++ b/tools/test.py @@ -70,6 +70,7 @@ def cmp(x, y): # Python 3 VERBOSE = False +os.umask(0o022) os.environ['NODE_OPTIONS'] = '' # ---------------------------------------------