do not send stderr in email

This commit is contained in:
Girish Ramakrishnan 2015-11-19 13:49:13 -08:00
parent e473606727
commit d45ffad94f
2 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,8 @@ function runTests(latestVersionInfo, callback) {
var topic = util.format('E2E Test %s for box version: %s', error ? 'failed': 'passed', latestVersionInfo.version);
mailer.sendEndToEndTestResult(topic, JSON.stringify(latestVersionInfo, null, 4), stdout ? stdout.toString('utf8') : '', stderr ? stderr.toString('utf8') : '', function () { });
// do not send stderr in mail since it contains the tail log stream
mailer.sendEndToEndTestResult(topic, JSON.stringify(latestVersionInfo, null, 4), stdout ? stdout.toString('utf8') : '', '', function () { });
return callback(error);
});
}

View File

@ -28,8 +28,8 @@ sleep 20 # wait for the other tests to have created the cloudron
test_pids+=("$!")
test_logs+=("logs/cloudron-update-test.log")
# stream all the logs
tail -f ${test_logs[*]} &
# stream all the logs (to stderr so that it's not in email but in deploy logs)
tail -f ${test_logs[*]} >&2 &
# wait for tests to finish
fail=0