Skip to content

Commit 1d23191

Browse files
committed
test: initialise disks before login
In our CI logging in and then adding disks seems to be a bit more flaky with udisks 2.11. Instead of extending waiting on the disk to be visible first initialise it and then log into Cockpit.
1 parent 176a1e7 commit 1d23191

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/verify/check-storage-unused

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ class TestStorageUnused(storagelib.StorageCase):
2828
m = self.machine
2929
b = self.browser
3030

31-
self.login_and_go("/storage")
32-
3331
# The following block devices should not be offered for creating a
3432
# raid
3533
#
@@ -42,6 +40,9 @@ class TestStorageUnused(storagelib.StorageCase):
4240

4341
disk1 = self.add_ram_disk()
4442
disk2 = self.add_loopback_disk()
43+
44+
self.login_and_go("/storage")
45+
4546
b.wait_visible(self.card_row("Storage", name=disk1))
4647
b.wait_visible(self.card_row("Storage", name=disk2))
4748
script = """mktable msdos \

0 commit comments

Comments
 (0)