From 29178f5f9caf141db59ddc113b0921c44c47dc41 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Mon, 6 Nov 2023 11:57:37 +0200 Subject: [PATCH] DBG - testUsed UDisks2 timeout --- test/run | 2 +- test/verify/check-storage-used | 29 +++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/test/run b/test/run index f601b980c6bf..79bc3d2f383e 100755 --- a/test/run +++ b/test/run @@ -52,7 +52,7 @@ case "${TEST_SCENARIO:=}" in PREPARE_OPTS="$PREPARE_OPTS --quick" ;;& *storage*) - RUN_OPTS="$RUN_OPTS $(echo "$ALL_TESTS" | grep -E "$RE_STORAGE")" + RUN_OPTS="$RUN_OPTS TestStorageUsed PREPARE_OPTS="$PREPARE_OPTS --quick" ;;& *expensive*) diff --git a/test/verify/check-storage-used b/test/verify/check-storage-used index 0b2e0ee85c64..6802eaba6f59 100755 --- a/test/verify/check-storage-used +++ b/test/verify/check-storage-used @@ -24,7 +24,7 @@ import testlib @testlib.nondestructive class TestStorageUsed(storagelib.StorageCase): - def testUsed(self): + def checkUsed(self): m = self.machine b = self.browser @@ -89,12 +89,37 @@ ExecStart=/usr/bin/sleep infinity b.wait_visible("#dialog tbody:first-of-type button:contains(Currently in use)") b.assert_pixels('#dialog', "format-disk") self.dialog_apply() - self.dialog_wait_close() + try: + self.dialog_wait_close() + except: + print(m.execute("lsblk; udevadm info /dev/sda")) + raise m.execute("! systemctl --quiet is-active keep-mnt-busy") self.content_row_wait_in_col(1, 0, "Free space") + def testUsed1(self): + self.checkUsed() + + def testUsed2(self): + self.checkUsed() + + def testUsed3(self): + self.checkUsed() + + def testUsed4(self): + self.checkUsed() + + def testUsed5(self): + self.checkUsed() + + def testUsed6(self): + self.checkUsed() + + def testUsed7(self): + self.checkUsed() + def testUsedAsPV(self): m = self.machine b = self.browser