Commit 7392ac57 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

10 minutes may be not enough to start QEMU TCG under QEMU TCG - increase the timeout to 1 hour

parent fa57e3ef
diff -uNr libguestfs-1.42.0/run.in libguestfs-1.42.0-fix_test_timeout/run.in
--- libguestfs-1.42.0/run.in 2020-03-06 19:31:08.573072155 +0000
+++ libguestfs-1.42.0-fix_test_timeout/run.in 2020-07-14 17:18:34.725605797 +0000
--- libguestfs-1.42.0/run.in 2020-03-07 06:01:08.573072155 +1030
+++ libguestfs-1.42.0-fix_test_timeout/run.in 2021-01-12 01:56:19.346154903 +1030
@@ -243,7 +243,7 @@
# Originally 1h, but that is not long enough to run the C API
......@@ -10,3 +10,15 @@ diff -uNr libguestfs-1.42.0/run.in libguestfs-1.42.0-fix_test_timeout/run.in
timeout_kill=30s
# Must use the --foreground option (RHBZ#1025269).
diff -uNr libguestfs-1.42.0/tests/c-api/tests-main.c libguestfs-1.42.0-fix_test_timeout/tests/c-api/tests-main.c
--- libguestfs-1.42.0/tests/c-api/tests-main.c 2020-03-07 06:01:08.588071940 +1030
+++ libguestfs-1.42.0-fix_test_timeout/tests/c-api/tests-main.c 2021-01-12 01:55:30.500011272 +1030
@@ -446,7 +446,7 @@
}
/* Set a timeout in case qemu hangs during launch (RHBZ#505329). */
- alarm (600);
+ alarm (3600);
if (guestfs_launch (g) == -1) {
printf ("FAIL: guestfs_launch\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment