* [PATCH] tests/qemu-iotests: Bump timeout of iothreads-stream test
@ 2024-01-24 13:35 Saif Abrar
2024-01-25 16:49 ` Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Saif Abrar @ 2024-01-24 13:35 UTC (permalink / raw)
To: qemu-block; +Cc: kwolf, hreitz, qemu-devel, npiggin
Current value of timeout=0.1 is sometimes too tight.
Bump timeout to 0.3 to avoid test failures.
Signed-off-by: Saif Abrar <saif.abrar@linux.vnet.ibm.com>
---
tests/qemu-iotests/tests/iothreads-stream | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/tests/iothreads-stream b/tests/qemu-iotests/tests/iothreads-stream
index 503f221f16..32e46e044e 100755
--- a/tests/qemu-iotests/tests/iothreads-stream
+++ b/tests/qemu-iotests/tests/iothreads-stream
@@ -63,7 +63,7 @@ with iotests.FilePath('disk1.img') as base1_path, \
finished = 0
while True:
try:
- ev = vm.event_wait('JOB_STATUS_CHANGE', timeout=0.1)
+ ev = vm.event_wait('JOB_STATUS_CHANGE', timeout=0.3)
if ev is not None and ev['data']['status'] == 'null':
finished += 1
# The test is done once both jobs are gone
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tests/qemu-iotests: Bump timeout of iothreads-stream test
2024-01-24 13:35 [PATCH] tests/qemu-iotests: Bump timeout of iothreads-stream test Saif Abrar
@ 2024-01-25 16:49 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2024-01-25 16:49 UTC (permalink / raw)
To: Saif Abrar; +Cc: qemu-block, hreitz, qemu-devel, npiggin
Am 24.01.2024 um 14:35 hat Saif Abrar geschrieben:
> Current value of timeout=0.1 is sometimes too tight.
> Bump timeout to 0.3 to avoid test failures.
>
> Signed-off-by: Saif Abrar <saif.abrar@linux.vnet.ibm.com>
This is not the real problem. The real problem is that the timeout makes
the test fail because we're catching the wrong TimeoutError class. What
it really should do is issue another query-jobs and go back to waiting.
I actually sent a patch earlier today to fix this:
https://lists.gnu.org/archive/html/qemu-block/2024-01/msg00353.html
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-25 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-24 13:35 [PATCH] tests/qemu-iotests: Bump timeout of iothreads-stream test Saif Abrar
2024-01-25 16:49 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).