Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/410'
Browse files Browse the repository at this point in the history
* origin/pr/410:
  tests: change default LVM pool to qubes_dom0/vm-pool
  • Loading branch information
marmarek committed Jun 17, 2021
2 parents 9e39f1d + 8338f7c commit 8895571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
if 'DEFAULT_LVM_POOL' in os.environ.keys():
DEFAULT_LVM_POOL = os.environ['DEFAULT_LVM_POOL']
else:
DEFAULT_LVM_POOL = 'qubes_dom0/pool00'
DEFAULT_LVM_POOL = 'qubes_dom0/vm-pool'

POOL_CONF = {'name': 'test-lvm',
'driver': 'lvm_thin',
Expand Down Expand Up @@ -824,7 +824,7 @@ def _find_pool(self, volume_group, thin_pool):

def init_lvm_pool(self):
volume_group, thin_pool = DEFAULT_LVM_POOL.split('/', 1)
path = "/dev/mapper/{!s}-{!s}".format(volume_group, thin_pool)
path = "/dev/mapper/{!s}-{!s}".format(volume_group, thin_pool.replace('-', '--'))
if not os.path.exists(path):
self.skipTest('LVM thin pool {!r} does not exist'.
format(DEFAULT_LVM_POOL))
Expand Down

0 comments on commit 8895571

Please sign in to comment.