Skip to content

Commit b5ff68e

Browse files
i8-pirefack
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: nodejs#25213 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 8e9fd63 commit b5ff68e

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)