summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-05-27 18:28:37 +0100
committerandrey-zelenkov <xim.andrew@gmail.com>2024-06-07 17:36:15 +0100
commitc9dced37ba8df762e1e0776c24d32c4c76d677c1 (patch)
tree1fcda9469bff0a015c82ac9f7b96226de0f4b661
parente77a0c166f3a840d214a901a48d6b5e5806d0156 (diff)
downloadunit-c9dced37ba8df762e1e0776c24d32c4c76d677c1.tar.gz
unit-c9dced37ba8df762e1e0776c24d32c4c76d677c1.tar.bz2
Tests: print unit.log on unsuccessful unmount
-rw-r--r--test/conftest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py
index 2d8eabad..91c59e17 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -429,6 +429,7 @@ def _clear_temp_dir():
temporary_dir = unit_instance['temp_dir']
if is_findmnt and not waitforunmount(temporary_dir, timeout=600):
+ Log.print_log()
sys.exit(f'Could not unmount filesystems in tmpdir ({temporary_dir}).')
for item in Path(temporary_dir).iterdir():