Skip to content

Commit 23a25ff

Browse files
i8-piBethGriggs
authored andcommitted
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>
1 parent 59f3c82 commit 23a25ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def cmp(x, y): # Python 3
7070

7171
VERBOSE = False
7272

73+
os.umask(0o022)
7374
os.environ['NODE_OPTIONS'] = ''
7475

7576
# ---------------------------------------------

0 commit comments

Comments
 (0)