Osmocom Continuous Integration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
osmo-ci/scripts/cat-testlogs.sh

22 lines
631 B

#!/bin/sh
#
# Intended for use in jenkins build jobs, like this:
# export PATH="$PATH:/usr/local/src/buildserver-commons"
# $MAKE check || cat-testlogs.sh
#
# In the jenkins console output, show the actual failures by printing the test
# logs to the console output. This way we can see how exactly the test failed
# even if a job is older and no workspace is available.
set +x
find . -path "*/testsuite.dir/*/testsuite.log" | while read testlog; do
echo
echo
echo
echo ======================== "$testlog"
echo
cat $testlog
done
# this will be called after a test failure, so make sure to return an error
exit 1