-
Notifications
You must be signed in to change notification settings - Fork 217
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(cosmic-swingset): Include the last three lines of stderr when a make
test fails
#10438
Conversation
…`make` test fails
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.
LGTM! Just one minor style nit you're free to ignore.
/** @type {Promise<string> | undefined} */ | ||
let stderrP = Promise.resolve(''); | ||
// https://nodejs.org/docs/latest/api/child_process.html#optionsstdio | ||
let { stdio = 'pipe' } = opts; | ||
if (stdio === 'ignore' || stdio[2] === 'ignore') { | ||
stderrP = undefined; | ||
stdio = typeof stdio === 'string' ? [stdio, stdio, stdio] : [...stdio]; | ||
stdio[2] = 'pipe'; | ||
} |
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 is just my style. Feel free to ignore:
/** @type {Promise<string> | undefined} */ | |
let stderrP = Promise.resolve(''); | |
// https://nodejs.org/docs/latest/api/child_process.html#optionsstdio | |
let { stdio = 'pipe' } = opts; | |
if (stdio === 'ignore' || stdio[2] === 'ignore') { | |
stderrP = undefined; | |
stdio = typeof stdio === 'string' ? [stdio, stdio, stdio] : [...stdio]; | |
stdio[2] = 'pipe'; | |
} | |
/** @type {Promise<string> | undefined} */ | |
let stderrP; | |
// https://nodejs.org/docs/latest/api/child_process.html#optionsstdio | |
let { stdio = 'pipe' } = opts; | |
if (stdio === 'ignore' || stdio[2] === 'ignore') { | |
stdio = typeof stdio === 'string' ? [stdio, stdio, stdio] : [...stdio]; | |
stdio[2] = 'pipe'; | |
} else { | |
stderrP = Promise.resolve('') | |
} |
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.
Thanks, that does read a bit better.
…when a make test fails
Deploying agoric-sdk with Cloudflare Pages
|
Description
Extracted from #10165 to independently resolve a preëxisting TODO.
Security Considerations
n/a
Scaling Considerations
n/a
Documentation Considerations
n/a
Testing Considerations
Makes it easier to debug failures in
make
-dependent cosmic-swingset tests.Upgrade Considerations
n/a