Skip to content

Commit f2d2ba9

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 589f9e8 commit f2d2ba9

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)