aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-05-24 16:53:14 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-05-24 16:53:14 -0700
commitdfd13ca3b8a26f47f50bf2f05bd378ef0c1476f2 (patch)
tree4160ede8bd0c04565d0154d70c610f18d18cc0cf /test
parentcb6da126941fb329a4817f061d30fe21eb3fa7a8 (diff)
Travis-CI: Don't abort on first failed test
This should help debugging issue #157.
Diffstat (limited to 'test')
-rwxr-xr-xtest/travis-build.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/travis-build.sh b/test/travis-build.sh
index 9d190bf..dcf2421 100755
--- a/test/travis-build.sh
+++ b/test/travis-build.sh
@@ -9,6 +9,8 @@ export ASAN_OPTIONS="detect_leaks=0"
export LSAN_OPTIONS="suppressions=$(pwd)/test/lsan_suppress.txt"
export CC
+TEST_CMD="python3 -m pytest --maxfail=99 test/"
+
# Standard build
for CC in gcc gcc-6 clang; do
mkdir build-${CC}; cd build-${CC}
@@ -22,7 +24,7 @@ for CC in gcc gcc-6 clang; do
sudo chown root:root util/fusermount3
sudo chmod 4755 util/fusermount3
- TEST_WITH_VALGRIND=true python3 -m pytest test/
+ TEST_WITH_VALGRIND=true ${TEST_CMD}
cd ..
done
(cd build-$CC; sudo ninja install)
@@ -37,10 +39,10 @@ for san in undefined address; do
ninja
# Test as root and regular user
- sudo python3 -m pytest test/
+ sudo ${TEST_CMD}
sudo chown root:root util/fusermount3
sudo chmod 4755 util/fusermount3
- python3 -m pytest test/
+ ${TEST_CMD}
cd ..
done
@@ -49,7 +51,7 @@ CC=gcc
./makeconf.sh
./configure
make
-sudo python3 -m pytest test/
+sudo ${TEST_CMD}
sudo make install
# Documentation