-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: use common platform helpers everywhere #7845
Conversation
|
||
require('../common'); | ||
// FIXME add sunos support | ||
if ('linux freebsd darwin'.indexOf(process.platform) === -1) { | ||
if (!common.isFreeBSD && !common.isOSX && !common.isLinux) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be more readable as !(common.isFreeBSD || common.isOSX || common.isLinux)
LGTM with a couple comments. |
PR updated. Thanks |
CI came back all green. I wonder if the |
LGTM
The way I read it, the test was simply always skipped on all platforms. |
LGTM |
@cjihrig, after Ben's explanation, does the PR LGTY? |
@santigimeno yes. I think we were saying the same thing... I just said it wrong. |
Use the common.isWindows, common.isFreeBSD and common.isSunOS where possible. Add common.isOSX and common.isLinux. Fix `test-fs-read-file-sync-hostname` as in its current form was not being run anywhere. PR-URL: nodejs#7845 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
All green except a known |
Landed in dee0e3a |
Use the common.isWindows, common.isFreeBSD and common.isSunOS where possible. Add common.isOSX and common.isLinux. Fix `test-fs-read-file-sync-hostname` as in its current form was not being run anywhere. PR-URL: #7845 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
Use the
common.isWindows
,common.isFreeBSD
andcommon.isSunOS
where possible. Addcommon.isOSX
andcommon.isLinux
.Fix
test-fs-read-file-sync-hostname
as in its current form was not being run anywhere./cc @nodejs/testing