diff options
author | Thomas Chung <thomas@nomology.id.au> | 2018-12-25 17:07:19 +1100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-02 15:01:38 +0100 |
commit | ee592c35623d6108f3cc64aaf8322f2e261bdb42 (patch) | |
tree | 1e94bb6ab57187bbb3aa51fc26f998f6019d9b5f /tools | |
parent | f131ea6fafce7e598cc2bd099869be3aa0922157 (diff) | |
download | android-node-v8-ee592c35623d6108f3cc64aaf8322f2e261bdb42.tar.gz android-node-v8-ee592c35623d6108f3cc64aaf8322f2e261bdb42.tar.bz2 android-node-v8-ee592c35623d6108f3cc64aaf8322f2e261bdb42.zip |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test.py b/tools/test.py index 738997d584..0a2ca193d7 100755 --- a/tools/test.py +++ b/tools/test.py @@ -70,6 +70,7 @@ skip_regex = re.compile(r'# SKIP\S*\s+(.*)', re.IGNORECASE) VERBOSE = False +os.umask(0o022) os.environ['NODE_OPTIONS'] = '' # --------------------------------------------- |