From 0d946defbec70e8a2e1ffbce56100cb3e700fc20 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Feb 19 2018 18:04:10 +0000 Subject: Use /var/tmp/sanlock for temporary test files Recent pytest started to use /tmp by default for temporary files. This causes tests using direct I/O to fail. Use /var/tmp which typically supports direct I/O. Signed-off-by: Nir Soffer --- diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..73176d5 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +# Note: we must use /var/tmp as sanlock uses direct I/O. +addopts = -rxs --basetemp=/var/tmp/sanlock