From 24ebc10ec891423abced1658f77e474caa9cc368 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 27 Dec 2015 12:54:45 -0800 Subject: [PATCH] Travis: Display all errors, not just first one, in py3k testing. --- tools/travis/py3k | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/travis/py3k b/tools/travis/py3k index a928958ae5..96a5f99f05 100755 --- a/tools/travis/py3k +++ b/tools/travis/py3k @@ -42,10 +42,20 @@ libpasteurize.fixes.fix_newstyle echo; echo "Testing for additions of Python 2 patterns we've removed as part of moving towards Python 3 compatibility."; echo +failed=0 for fixer in $fixers; do echo "Running Python 3 compatibility test $fixer" futurize -f $fixer -j4 -n -w . >/dev/null 2>/dev/null - git diff --exit-code || (echo; echo "Python 3 compatibility error(s) detected! See diff above for what you need to change." && exit 1) + if ! git diff --exit-code; then + # Clear the output from this one + git reset --hard >/dev/null + failed=1 + fi done -echo "No issues detected!" +echo +if [ -z "$failed" ]; then + echo "No issues detected!" +else + echo "Python 3 compatibility error(s) detected! See diffs above for what you need to change." +fi