Tests: print unit.log on unsuccessful unmount
This commit is contained in:
parent
e77a0c166f
commit
c9dced37ba
1 changed files with 1 additions and 0 deletions
|
@ -429,6 +429,7 @@ def _clear_temp_dir():
|
||||||
temporary_dir = unit_instance['temp_dir']
|
temporary_dir = unit_instance['temp_dir']
|
||||||
|
|
||||||
if is_findmnt and not waitforunmount(temporary_dir, timeout=600):
|
if is_findmnt and not waitforunmount(temporary_dir, timeout=600):
|
||||||
|
Log.print_log()
|
||||||
sys.exit(f'Could not unmount filesystems in tmpdir ({temporary_dir}).')
|
sys.exit(f'Could not unmount filesystems in tmpdir ({temporary_dir}).')
|
||||||
|
|
||||||
for item in Path(temporary_dir).iterdir():
|
for item in Path(temporary_dir).iterdir():
|
||||||
|
|
Loading…
Reference in a new issue