All of lore.kernel.org
 help / color / mirror / Atom feed
* main - lvmdbustest.py: Increase udev timeout
@ 2023-03-03 18:03 Tony Asleson
  0 siblings, 0 replies; only message in thread
From: Tony Asleson @ 2023-03-03 18:03 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=80f6655956273b84ec2301dae7c6454ca62d124c
Commit:        80f6655956273b84ec2301dae7c6454ca62d124c
Parent:        4cbe789f9c273cd03a3b0aff39aa43fc7674099f
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Wed Mar 1 15:25:00 2023 -0600
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Wed Mar 1 15:26:37 2023 -0600

lvmdbustest.py: Increase udev timeout

---
 test/dbus/lvmdbustest.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index b1c965bb7..b98332d65 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -2410,7 +2410,8 @@ class TestDbusService(unittest.TestCase):
 	def _block_present_absent(self, block_device, present=False):
 		start = time.time()
 		keep_looping = True
-		while keep_looping and time.time() < start + 3:
+		max_wait = 10
+		while keep_looping and time.time() < start + max_wait:
 			if present:
 				if (self._lookup(block_device) != "/"):
 					keep_looping = False
@@ -2419,7 +2420,7 @@ class TestDbusService(unittest.TestCase):
 					keep_looping = False
 
 		if keep_looping:
-			print("Daemon failed to update")
+			print("Daemon failed to update within %d seconds!" % max_wait)
 		else:
 			print("Note: Time for udev update = %f" % (time.time() - start))
 		if present:


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-03 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 18:03 main - lvmdbustest.py: Increase udev timeout Tony Asleson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.