dump error output directly on short import errors
This commit is contained in:
1 changed files with 12 additions and 1 deletions
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"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.