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 2, 2019
1 parent f131ea6 commit ee592c3
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 ee592c3

Please sign in to comment.