Skip to content

Commit

Permalink
tests: Skip Stratis tests on RHEL/CentOS 7
Browse files Browse the repository at this point in the history
Stratis is not available on RHEL/CentOS 7.

Related: RHEL-31854
  • Loading branch information
vojtechtrefny authored and richm committed Jun 10, 2024
1 parent 18a8a3a commit 00dabe1
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 159 deletions.
4 changes: 2 additions & 2 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ def _destroy(self):


class BlivetStratisVolume(BlivetVolume):
blivet_device_class = devices.StratisFilesystemDevice
blivet_device_class = devices.StratisFilesystemDevice if hasattr(devices, "StratisFilesystemDevice") else None

def _update_from_device(self, param_name):
if param_name == 'fs_type':
Expand Down Expand Up @@ -1911,7 +1911,7 @@ def _look_up_device(self):


class BlivetStratisPool(BlivetPool):
blivet_device_class = devices.StratisPoolDevice
blivet_device_class = devices.StratisPoolDevice if hasattr(devices, "StratisPoolDevice") else None

def _type_check(self):
return self._device.type == "stratis pool"
Expand Down
Loading

0 comments on commit 00dabe1

Please sign in to comment.