Skip to content

Commit

Permalink
Remove before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Sep 19, 2024
1 parent bf09674 commit 6eb7cf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plans/tests.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ prepare:

execute:
how: tmt
script: sudo make test
# script: sudo make test
script:
- lsblk -f
- sudo python3 tests/run_tests.py storage_tests
3 changes: 3 additions & 0 deletions tests/storage_tests/devices_test/stratis_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ def _clean_up(self):
class StratisTestCase(StratisTestCaseBase):

def test_stratis_basic(self):
print("self.vdevs: %s" % self.vdevs)
disk = self.storage.devicetree.get_device_by_path(self.vdevs[0])
self.assertIsNotNone(disk)
self.storage.initialize_disk(disk)

bd = self.storage.new_partition(size=blivet.size.Size("1 GiB"), fmt_type="stratis",
parents=[disk])
self.storage.create_device(bd)
print("bd: %s" % bd)
print("disk: %s" % disk)

blivet.partitioning.do_partitioning(self.storage)

Expand Down

0 comments on commit 6eb7cf3

Please sign in to comment.