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:
Thomas Chung authored and Myles Borins committed 2019-05-16 14:56:18 -04:00
1 parent d9aa19f98e
commit 8a4fe98ec9
1 file changed
+1
+1
View File
@@ -70,6 +70,7 @@ skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE)
VERBOSE = False
os.umask(0o022)
os.environ['NODE_OPTIONS'] = ''
# ---------------------------------------------