summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-09-27 11:17:14 -0400
committerJonathan Abrahams <jonathan@mongodb.com>2016-09-27 11:17:14 -0400
commit0bcd5c3a46b7c25f4d580963b0d429ddd722cb52 (patch)
treecee693f3b8c58c793bf6817355594f623fff2a17
parent8b065006a1a30aa0c1032867f63cbd026bc268cc (diff)
downloadmongo-0bcd5c3a46b7c25f4d580963b0d429ddd722cb52.tar.gz
SERVER-26314 Print output for failed npm self tests
-rw-r--r--etc/evergreen.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 7282e5a1133..3aea79aa470 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -458,9 +458,19 @@ functions:
export PATH="$PATH:/opt/node/bin"
fi
- # Run jstestfuzz self-tests; redirect to /dev/null to avoid polluting the logs.
echo "jstestfuzz self-tests are starting"
- npm test > /dev/null
+ set +o errexit
+ npm test > npm_test-${task_id}.log 2>&1
+ if [ $? -ne 0 ]; then
+ which node
+ node --version
+ which npm
+ npm --version
+ cat npm_test-${task_id}.log
+ exit 1
+ fi
+ rm -f npm_test-${task_id}.log
+ set -o errexit
echo "jstestfuzz self-tests finished"
npm start -- --jsTestsDir ../jstests ${jstestfuzz_vars}