libvirt: set libvirt.sysinfo_serial='none' for virt driver tests

The default value for the sysinfo_serial option is 'auto' which
tries to read from the /etc/machine-id file if it exists and is
not empty.

Unit tests should not be dependent on trying to read from system
files outside the virtual environment, so for the generic virt
driver tests set the config option value to 'none' so we don't
do anything for the sysinfo_serial option.

Change-Id: Ib9ba0ec2c1690d93eadb63e699740e4ba988cce1
Closes-Bug: #1551900
(cherry picked from commit 6c3991e881)
This commit is contained in:
Matt Riedemann 2016-03-01 13:59:36 -05:00
parent db135984c5
commit 2da1d8ba76
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ class _FakeDriverBackendTestCase(object):
rescue_kernel_id="3",
rescue_ramdisk_id=None,
snapshots_directory='./',
sysinfo_serial='none',
group='libvirt')
def fake_extend(image, size):