Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Flush stdout before exiting process after running tests #14653

Merged
merged 1 commit into from
Apr 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build-system/tasks/runtime-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ function runTests() {
log(red('ERROR:'), 'Only integration tests may be run on the full set of ' +
'Sauce Labs browsers');
log('Use', cyan('--saucelabs'), 'with', cyan('--integration'));
// Flush stdout.
process.stdout.write('\n');
process.exit();
}

Expand Down Expand Up @@ -346,6 +348,8 @@ function runTests() {
log(yellow(
'Shutting down test responses server on localhost:31862'));
process.nextTick(function() {
// Flush stdout.
process.stdout.write('\n');
process.exit();
});
}));
Expand Down Expand Up @@ -376,6 +380,8 @@ function runTests() {
log(
red('ERROR:'),
yellow('Karma test failed with exit code ' + exitCode));
// Flush stdout.
process.stdout.write('\n');
process.exit(exitCode);
} else {
resolver();
Expand Down