Skip to content
Permalink
Browse files

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: #25213
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information...
i8-pi authored and addaleax committed Dec 25, 2018
1 parent c10b131 commit 973b32d3c303ca5b4b5385a9a65da55e5124b9bc
Showing with 1 addition and 0 deletions.
  1. +1 −0 tools/test.py
@@ -70,6 +70,7 @@ def cmp(x, y): # Python 3

VERBOSE = False

os.umask(0o022)
os.environ['NODE_OPTIONS'] = ''

# ---------------------------------------------

0 comments on commit 973b32d

Please sign in to comment.
You can’t perform that action at this time.