소스 검색

Revert "tests: do not use lazy unmount"

Revert to use umount -l in storage tests cleanup. With fixed permissions
in 4234fe51 "tests: fix cleanup after reflink tests", it shouldn't cause
issues anymore, but apparently on some systems test cleanup fails
otherwise.

Reported by @rustybird
This reverts commit b6f77ebfa104df519fe271814d16073de109f282.
Marek Marczykowski-Górecki 4 년 전
부모
커밋
883d324b6c
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      qubes/tests/storage_reflink.py

+ 1 - 5
qubes/tests/storage_reflink.py

@@ -135,11 +135,7 @@ def rmtree_fs(directory):
     cmd('sudo', 'chattr', '-i', directory)
     cmd('sudo', 'chmod', '777', directory)
     if os.path.ismount(directory):
-        try:
-            cmd('sudo', 'umount', directory)
-        except:
-            cmd('sudo', 'fuser', '-vm', directory)
-            raise
+        cmd('sudo', 'umount', '-l', directory)
         # loop device and backing file are garbage collected automatically
     shutil.rmtree(directory)