fi
python3 -m pytest ${testargs[$1]}
result=$?
- if [[ ${tries} < 3 && ${result} == 137 ]]
+ if [[ ${tries} < 3 && ${result} == 75 ]]
then
- printf '\n*****\n%s tests killed -- retrying\n*****\n\n' "$1"
+ printf '\n*****\n%s tests exited TEMPFAIL -- retrying\n*****\n\n' "$1"
continue
else
break
import tempfile
import unittest
+import pytest
+
from . import run_test_server
@atexit.register
if self.mount and self.mount.llfuse_thread.is_alive():
logging.warning("IntegrationTest.mount:"
" llfuse thread still alive after umount"
- " -- killing test suite to avoid deadlock")
- os.kill(os.getpid(), signal.SIGKILL)
+ " -- ending test suite to avoid deadlock")
+ pytest.exit("llfuse thread outlived test", os.EX_TEMPFAIL)
return wrapper
return decorator
import time
import unittest
+import pytest
+
from . import run_test_server
from .integration_test import workerPool
if self.llfuse_thread.is_alive():
logger.warning("MountTestBase.tearDown():"
" llfuse thread still alive 60s after umount"
- " -- exiting with SIGKILL")
- os.kill(os.getpid(), signal.SIGKILL)
+ " -- ending test suite to avoid deadlock")
+ pytest.exit("llfuse thread outlived test", os.EX_TEMPFAIL)
waited = time.time() - t0
if waited > 0.1:
logger.warning("MountTestBase.tearDown(): waited %f s for llfuse thread to end", waited)