mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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: https://github.com/nodejs/node/pull/25213 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
1 parent
d9aa19f98e
commit
8a4fe98ec9
1 file changed
+1
@@ -70,6 +70,7 @@ skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE)
|
||||
|
||||
VERBOSE = False
|
||||
|
||||
os.umask(0o022)
|
||||
os.environ['NODE_OPTIONS'] = ''
|
||||
|
||||
# ---------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user