# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1226392309 28800
# Node ID a2c81c6533f2ba0b0409e42f82e697c2b0844ed0
# Parent 9d24629f17819c31889e22f22492e998760d1394
[TEST]Fix VSSD/04_vssd_to_rasd.py for LXC
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 9d24629f1781 -r a2c81c6533f2 suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py
--- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Sun Nov 09 20:40:42 2008 -0800
+++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Tue Nov 11 00:31:49 2008 -0800
@@ -210,6 +210,8 @@
virt = options.virt
if virt == "Xen":
test_disk = "xvda"
+ if virt == "LXC":
+ test_disk = "/tmp"
else:
test_disk = "hda"
diff -r 9d24629f1781 -r a2c81c6533f2 suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py Sun Nov 09 20:40:42 2008 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py Tue Nov 11 00:31:49 2008 -0800
@@ -61,6 +61,8 @@
try:
disk_path = vsxml.xml_get_disk_source()
+ if virt == 'LXC':
+ disk_path = '/tmp/lxc_files'
rasd_values = {
proc_cn : {