# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1229498311 28800
# Node ID 2ddc81f7e2df5074ac0eff1ec0ded4a9b9d037fb
# Parent 3bef4df8290571505d2c9028b6c82e0abc8b2e74
[TEST] Updating VSMS 15_mod_system_settings.py tc to XFAIL for KVM with F9 rpm.
The value of AutomaticRecoveryAction is set to 2 for libvirt-cim F9 rpm instead of 3.
The value of AutomaticRecoveryAction is set to 3 for KVM, Xen with current sources.
The tc will XFAIL for now with the current F9 rpm for KVM.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 3bef4df82905 -r 2ddc81f7e2df
suites/libvirt-cim/cimtest/VirtualSystemManagementService/15_mod_system_settings.py
---
a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/15_mod_system_settings.py Mon
Dec 15 09:45:28 2008 -0800
+++
b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/15_mod_system_settings.py Tue
Dec 16 23:18:31 2008 -0800
@@ -38,6 +38,8 @@
RECOVERY_VAL = 3
DEFINED_STATE = 3
bug = "00008"
+f9_bug = "00010"
+libvirt_f9_revision=613
libvirt_modify_setting_changes = 694
def cleanup_env(ip, cxml):
@@ -127,6 +129,10 @@
logger.error("Exp AutomaticRecoveryAction=%d, got %d",
RECOVERY_VAL,
inst.AutomaticRecoveryAction)
cleanup_env(options.ip, cxml)
+ curr_cim_rev, changeset = get_provider_version(options.virt, options.ip)
+ if curr_cim_rev <= libvirt_f9_revision and options.virt ==
"KVM":
+ return XFAIL_RC(f9_bug)
+
if options.virt == "LXC":
return XFAIL_RC(bug)
return FAIL