]> xenbits.xensource.com Git - libvirt.git/commit
qemuxml2argv: Mock virSCSIDeviceGetSgName
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Mar 2016 08:57:06 +0000 (09:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 23 Mar 2016 11:50:19 +0000 (12:50 +0100)
commit4b527c1acfa79b21242d339b33d23f0cff1f772f
treece61812aec6cc6be4f64c0efa7b5f8823b23e719
parent9c17d665fdc5f0ab74500a14c30627014c11b2c0
qemuxml2argv: Mock virSCSIDeviceGetSgName

When constructing SCSI hostdev command line for qemu, the
/sys/bus/scsi/devices/... dir is scanned. Unfortunately, even in
the tests. This is needed to determine the name of SCSI device to
passthrough to qemu, because in the domain XML we were given its
address instead. Anyway, we should not be touching live system
data in our test suite as it produced unpredictable results. The
test is regressing from 1e9a083742efe on.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuxml2argvmock.c