From 553243f2ea27fb81d0f446a86bd381611ff41ddb Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 14 Jul 2006 12:00:02 +0100 Subject: [PATCH] [XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds. This is needed when dom0 has 32 CPUs. Signed-off-by: Susan Krysan --- .../enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py b/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py index a29985afcb..86da935bea 100644 --- a/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py +++ b/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py @@ -73,9 +73,9 @@ if check_status and status != 0: # 5) check /proc/cpuinfo for cpu count -# It takes some time for the CPU count to change, on multi-proc systems, so check the number of procs in a loop for 20 seconds. +# It takes some time for the CPU count to change, on multi-proc systems, so check the number of procs in a loop for 30 seconds. #Sleep inside the loop for a second each time. -timeout = 20 +timeout = 30 starttime = time.time() while timeout + starttime > time.time(): # Check /proc/cpuinfo @@ -108,8 +108,8 @@ if num_online != enforce_dom0_cpus: reset_vcpu_count() # check restore worked -# Since this also takes time, we will do it in a loop with a 20 second timeout. -timeout=20 +# Since this also takes time, we will do it in a loop with a 30 second timeout. +timeout=30 starttime=time.time() while timeout + starttime > time.time(): num_online = int(getDomInfo("Domain-0", "VCPUs")) -- 2.39.5