]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
travis: retry non-parallel tests on failure
authorVincent Bernat <vincent@bernat.im>
Fri, 18 Mar 2016 19:18:30 +0000 (20:18 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 18 Mar 2016 19:40:56 +0000 (20:40 +0100)
On failure, reports are incomplete with parallel tests. In this case,
rerun failed tests with full verbosity.

tests/ci/run.sh

index 39d589f85d96584122dcd41077a0e859b5f5d997..91d00d559be43380aaf38c3819d94b11b4bd3db7 100755 (executable)
@@ -39,6 +39,7 @@ case "$(uname -s)" in
     Linux)
         # Integration tests
         cd tests/integration
-        sudo $(which python3) -m pytest -n 5 -vvv --boxed
+        sudo $(which python3) -m pytest -n 5 -vv --boxed || \
+            sudo $(which python3) -m pytest -vvv --last-failed --maxfail=5
         ;;
 esac