diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 3ba1b0b5..8645ce9f 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -756,11 +756,11 @@ class SystemTestCase(QubesTestCase): volumes = subprocess.check_output( ['sudo', 'lvs', '--noheadings', '-o', 'vg_name,name', '--separator', '/']).decode() - if ('/' + prefix) not in volumes: + if ('/vm-' + prefix) not in volumes: return subprocess.check_call(['sudo', 'lvremove', '-f'] + [vol.strip() for vol in volumes.splitlines() - if ('/' + prefix) in vol], + if ('/vm-' + prefix) in vol], stdout=subprocess.DEVNULL) except subprocess.CalledProcessError: pass