Skip to content

Commit 973b32d

Browse files
i8-piaddaleax
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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent c10b131 commit 973b32d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/test.py

+1
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)