aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-03-20 01:01:49 +0100
committerBernd Schubert <bschubert@ddn.com>2024-03-20 09:09:29 +0100
commit38d40c5bc1bd2c3614214fd996d6aee1e964019a (patch)
tree1852fa7df8b5958333ddaa96fa221d4c2c567849
parenta6a219f5344a5c09cec34416818342ac220a0df2 (diff)
downloadlibfuse-38d40c5bc1bd2c3614214fd996d6aee1e964019a.tar.gz
ci-build.sh: Reduce pytest --maxfail from 99 to 1
We want to see errors - reduce allowed errors. With --maxfail=99 tests out of the sudden started to hang in github, without a change in libfuse (I had actually tested to previous release tags). With --maxfail=1 pytest aborts and we see failing github. Also increase python log level to NOTSET - NOTSET should print all messages. Also use "pytest" has wrapper for "python3 -m"
-rwxr-xr-xtest/ci-build.sh2
-rw-r--r--test/pytest.ini2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/ci-build.sh b/test/ci-build.sh
index a023c15..fe77bbd 100755
--- a/test/ci-build.sh
+++ b/test/ci-build.sh
@@ -2,7 +2,7 @@
set -e
-TEST_CMD="python3 -m pytest --maxfail=99 test/"
+TEST_CMD="pytest -v --maxfail=1 --log-level=DEBUG --log-cli-level=DEBUG test/"
SAN="-Db_sanitize=address,undefined"
# not default
diff --git a/test/pytest.ini b/test/pytest.ini
index 036a9f4..bbc8de8 100644
--- a/test/pytest.ini
+++ b/test/pytest.ini
@@ -2,3 +2,5 @@
addopts = --verbose --assert=rewrite --tb=native -x -r a
markers =
uses_fuse: Indicates that FUSE is supported.
+log_cli=true
+faulthandler_timeout=60