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 <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
i8-pi authored and MylesBorins committed May 16, 2019
1 parent d9aa19f commit 8a4fe98
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 8a4fe98

Please sign in to comment.