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 committed Jun 6, 2024
1 parent 8567c67 commit a030240
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 @@ -1324,7 +1324,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 @@ -1903,7 +1903,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 a030240

Please sign in to comment.