-
Notifications
You must be signed in to change notification settings - Fork 30k
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: skip process-kill-null if cat unavailable #16228
Conversation
If the cat command is not available test-process-kill-null.js will report the following error: internal/process.js:160 throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'pid', 'Number'); ^ TypeError [ERR_INVALID_ARG_TYPE]: The "pid" argument must be of type Number at process.kill (internal/process.js:160:13) at Object.<anonymous> (C:\working\node\test\parallel\test-process-kill-null.js:31:19) at Module._compile (module.js:604:30) at Object.Module._extensions..js (module.js:615:10) at Module.load (module.js:523:32) at tryModuleLoad (module.js:486:12) at Function.Module._load (module.js:478:3) at Function.Module.runMain (module.js:645:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:605:3 I'm not sure if I have my windows environment configured correctly (I'm using Windows 10 Pro) but I get this error. The CI servers don't report it but perhaps they have some configuration that I don't. I wanted to raise this to be sure. This commit suggests to skip this test if the cat command is not available on the operating system.
Maybe a better way to fix this is to find an alternative to |
Sounds good, but I'm not sure what would be a good replacement command to use on windows. I'll dig around but if anyone has some suggestions they would be welcome? |
These 7 tests also use Links:
|
Sorry about that, I'd missed adding these to my path. Thanks for pointing them out. I'm rerunning the test locally now and hopefully I'll close this PR if all goes well. Sorry about the noise. |
@joyeecheung @vsemozhetbyt Closing this as using git-bash and updating my path did the trick and all test pass except one. I'll take a closer look at it. Thanks for your help! === release test-graph.pipeconnect ===
Path: async-hooks/test-graph.pipeconnect
fs.js:913
return binding.mkdir(pathModule.toNamespacedPath(path),
^
Error: EPERM: operation not permitted, mkdir 'C:\Users\danbev\working\node\test\tmp.0'
at Object.fs.mkdirSync (fs.js:913:18)
at Object.exports.refreshTmpDir (C:\Users\danbev\working\node\test\common\index.js:159:6)
at Object.<anonymous> (C:\Users\danbev\working\node\test\async-hooks\test-graph.pipeconnect.js:9:8)
at Module._compile (module.js:604:30)
at Object.Module._extensions..js (module.js:615:10)
at Module.load (module.js:523:32)
at tryModuleLoad (module.js:486:12)
at Function.Module._load (module.js:478:3)
at Function.Module.runMain (module.js:645:10)
at startup (bootstrap_node.js:187:16)
Command: C:\Users\danbev\working\node\Release\node.exe C:\Users\danbev\working\node\test\async-hooks\test-graph.pipeconnect.js
|
@danbev is it ok to close this then? |
@cjihrig Yeah, I just hit the wrong button 😞 . Thanks |
If the cat command is not available test-process-kill-null.js will
report the following error:
I'm not sure if I have my windows environment configured correctly (I'm
using Windows 10 Pro) but I get this error. The CI servers don't report
it but perhaps they have some configuration that I don't. I wanted to
raise this to be sure.
This commit suggests to skip this test if the cat command is not
available on the operating system.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test, windows