[PATCH] [TEST] Add a 10s delay at the beginning of VSSD-04_vssd_to_rasd.py

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1220944761 25200 # Node ID 59e8fc595d8c4e5207cbea9736ac53a1fe83fb98 # Parent 8abcd820b6b37e5fbe8ccc30734cefa908dfab78 [TEST] Add a 10s delay at the beginning of VSSD-04_vssd_to_rasd.py Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 8abcd820b6b3 -r 59e8fc595d8c suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py --- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Fri Sep 05 02:47:24 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Tue Sep 09 00:19:21 2008 -0700 @@ -43,6 +43,7 @@ import sys import XenKvmLib +from time import sleep from XenKvmLib import enumclass from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS, CIM_ERROR_ENUMERATE from XenKvmLib.const import do_main @@ -204,7 +205,9 @@ def main(): test_disk = "xvda" else: test_disk = "hda" - + + if virt == 'Xen' or virt == 'XenFV': + sleep(10) status, vsxml = setup_env(virt) if status != PASS: return status

I tried to use cim_define to fix this issue, but that didn't work for me. So I added a 10 seconds delay at the beginning of this test that works for Xen/XenFV. Thanks! Best, Regards Daisy (运国莲) VSM Team, China Systems & Technology Labs (CSTL) E-mail: yunguol@cn.ibm.com TEL: (86)-21-60922403 Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203 libvirt-cim-bounces@redhat.com wrote on 2008-09-09 15:19:26:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1220944761 25200 # Node ID 59e8fc595d8c4e5207cbea9736ac53a1fe83fb98 # Parent 8abcd820b6b37e5fbe8ccc30734cefa908dfab78 [TEST] Add a 10s delay at the beginning of VSSD-04_vssd_to_rasd.py
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
diff -r 8abcd820b6b3 -r 59e8fc595d8c suites/libvirt- cim/cimtest/VSSD/04_vssd_to_rasd.py --- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Fri Sep 05 02:47:24 2008 -0700 +++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Tue Sep 09 00:19:21 2008 -0700 @@ -43,6 +43,7 @@
import sys import XenKvmLib +from time import sleep from XenKvmLib import enumclass from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS, CIM_ERROR_ENUMERATE from XenKvmLib.const import do_main @@ -204,7 +205,9 @@ def main(): test_disk = "xvda" else: test_disk = "hda" - + + if virt == 'Xen' or virt == 'XenFV': + sleep(10) status, vsxml = setup_env(virt) if status != PASS: return status
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Guo Lian Yun wrote:
I tried to use cim_define to fix this issue, but that didn't work for me. So I added a 10 seconds delay at the beginning of this test that works for Xen/XenFV.
What error message did you get? I modified the test to use cim_define(), and it PASSed for me. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

libvirt-cim-bounces@redhat.com wrote on 2008-09-10 00:01:08:
Guo Lian Yun wrote:
I tried to use cim_define to fix this issue, but that didn't work for me. So I added a 10 seconds delay at the beginning of this test that works for Xen/XenFV.
What error message did you get? I modified the test to use cim_define(), and it PASSed for me.
Ya, it pass for me by using cim_define today. It did failed yesterday, I will send the error message once I encounter it again. Thanks!
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Guo Lian Yun wrote:
libvirt-cim-bounces@redhat.com wrote on 2008-09-10 00:01:08:
Guo Lian Yun wrote:
I tried to use cim_define to fix this issue, but that didn't work for me. So I added a 10 seconds delay at the beginning of this test that works for Xen/XenFV.
What error message did you get? I modified the test to use cim_define(), and it PASSed for me.
Ya, it pass for me by using cim_define today. It did failed yesterday, I will send the error message once I encounter it again.
Sure, that sounds good. Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (3)
-
Guo Lian Yun
-
Kaitlin Rupert
-
yunguol@cn.ibm.com