Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uptest: set umask for tests #25229
Conversation
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
the
test
label
Dec 26, 2018
This comment has been minimized.
This comment has been minimized.
|
Before: $ umask 077 && ./node test/parallel/test-fs-mkdir-mode-mask.js
assert.js:86
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
384 !== 420
at test (/Users/trott/io.js/test/parallel/test-fs-mkdir-mode-mask.js:32:12)
at Object.<anonymous> (/Users/trott/io.js/test/parallel/test-fs-mkdir-mode-mask.js:44:1)
at Module._compile (internal/modules/cjs/loader.js:718:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:729:10)
at Module.load (internal/modules/cjs/loader.js:617:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:771:12)
at executeUserCode (internal/bootstrap/node.js:389:15)
at startExecution (internal/bootstrap/node.js:328:3)
$ After: $ umask 077 && ./node test/parallel/test-fs-mkdir-mode-mask.js
$ |
This comment has been minimized.
This comment has been minimized.
cjihrig
approved these changes
Dec 26, 2018
Trott
added
the
work in progress (WIP)
label
Dec 26, 2018
lpinca
approved these changes
Dec 26, 2018
This comment has been minimized.
This comment has been minimized.
|
Lot of failures. |
This comment has been minimized.
This comment has been minimized.
Yes, I added the |
This comment has been minimized.
This comment has been minimized.
It's probably as simple as checking for existence first and doing nothing if it's not there (and assuming a parent process took care of it) but I want to check carefully to make sure there's nothing that requires anything more than that. |
jasnell
approved these changes
Dec 27, 2018
Trott
force-pushed the
Trott:tmpdir-umask
branch
from
e4276b9
to
055ab4c
Jan 9, 2019
Trott
removed
the
work in progress (WIP)
label
Jan 9, 2019
This comment has been minimized.
This comment has been minimized.
Trott
force-pushed the
Trott:tmpdir-umask
branch
from
055ab4c
to
8036a8b
Jan 9, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in a53518d |
Trott
closed this
Jan 10, 2019
Trott
added a commit
to Trott/io.js
that referenced
this pull request
Jan 10, 2019
addaleax
added a commit
that referenced
this pull request
Jan 14, 2019
Merged
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Jan 16, 2019
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Trott commentedDec 26, 2018
•
edited
#25213 proposes setting umask in the
Python test runner to avoid spurious test failures when running from a
shell with a restrictive umask. This is a good idea, but will only fix
the issue for tests run with the Python runner. Set it in
common/index.jsas well so that it fixes it even when tests are rundirectly with a
nodebinary, bypassing the Python test runner.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes