blob: 7995a7b87815348eb5ee79c128db9193d9b78c1d [file] [log] [blame]
#!/bin/bash -e
if [ -f ~/polygerrit-failed ]
then
echo ""
echo "*** POLYGERRIT TEST FAILED ***"
echo "See test log below"
echo "=============================="
echo ""
if [ -f gerrit/polygerrit-ui/karma_test.sh ]
then
cat $(ls ~/.cache/bazel/_bazel_jenkins/*/execroot/gerrit/bazel-out/*/testlogs/polygerrit-ui/karma_test/test.log)
else
cat $(ls ~/.cache/bazel/_bazel_jenkins/*/execroot/gerrit/bazel-out/*/testlogs/polygerrit-ui/app/wct_test/test.log)
fi
exit -1
fi