From 17ae6cd0b51a5e5780c1735365ebd48037cac254 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 | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/test/run b/test/run index f601b980c6bf..e10dda735514 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..8d61da5fc2de 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 @@ -84,17 +84,46 @@ ExecStart=/usr/bin/sleep infinity # No go ahead and let the automatic teardown take care of the mount + print(m.execute("lsblk; udevadm info /dev/sda")) + b.click('button:contains(Create partition table)') self.dialog_wait_open() 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")) + m.execute("sleep 60") + 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