All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbustest.py: Increase udev timeout
Date: Fri,  3 Mar 2023 18:03:26 +0000 (GMT)	[thread overview]
Message-ID: <20230303180326.542743858CDB@sourceware.org> (raw)

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:


                 reply	other threads:[~2023-03-03 18:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230303180326.542743858CDB@sourceware.org \
    --to=tasleson@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.