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 7, 2024
1 parent 2966e16 commit 9be4bd6
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

Check warning on line 1333 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L1332-L1333

Added lines #L1332 - L1333 were not covered by tests

def _update_from_device(self, param_name):
if param_name == 'fs_type':

Check warning on line 1336 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L1335-L1336

Added lines #L1335 - L1336 were not covered by tests
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

Check warning on line 1914 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L1913-L1914

Added lines #L1913 - L1914 were not covered by tests

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

Check warning on line 1917 in library/blivet.py

View check run for this annotation

Codecov / codecov/patch

library/blivet.py#L1916-L1917

Added lines #L1916 - L1917 were not covered by tests
Expand Down
Loading

0 comments on commit 9be4bd6

Please sign in to comment.