dump error output directly on short import errors
This commit is contained in:
parent
d160455b77
commit
2bbbfc5af6
13
run_tests.sh
13
run_tests.sh
@ -40,7 +40,18 @@ done
|
||||
function run_tests {
|
||||
# Just run the test suites in current environment
|
||||
${wrapper} rm -f nova.sqlite
|
||||
${wrapper} $NOSETESTS
|
||||
${wrapper} $NOSETESTS 2> run_tests.err.log
|
||||
# If we get some short import error right away, print the error log directly
|
||||
RESULT=$?
|
||||
if [ "$RESULT" -ne "0" ];
|
||||
then
|
||||
ERRSIZE=`wc -l run_tests.err.log | awk '{print \$1}'`
|
||||
if [ "$ERRSIZE" -lt "40" ];
|
||||
then
|
||||
cat run_tests.err.log
|
||||
fi
|
||||
fi
|
||||
return $RESULT
|
||||
}
|
||||
|
||||
NOSETESTS="python run_tests.py $noseargs"
|
||||
|
Loading…
x
Reference in New Issue
Block a user