From 22fa73b971ec45d6b8f58537ed6fce15390d7ab2 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 --- 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'] = '' # ---------------------------------------------