test: show stdout and stderr in test-cli-syntax when it fails
To help debugging the flake with the log from the CI.
Refs: https://github.com/nodejs/node/issues/24403
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines