Skip to content

Commit

Permalink
test: set umask explicitly
Browse files Browse the repository at this point in the history
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 Jan 5, 2019
1 parent c10b131 commit 973b32d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def cmp(x, y): # Python 3

VERBOSE = False

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

# ---------------------------------------------
Expand Down

0 comments on commit 973b32d

Please sign in to comment.