KVM test: unattended script: Check qemu-img bin path
PATCH 1/1 KVM test: unattended script: Check qemu-img bin path
Just to be safe, if the qemu-img path is not an absolute path, return the path of the symbolic link that is set.
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/tests/kvm/scripts/unattended.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/scripts/unattended.py +2 -0
@@ -54,6 +54,8 @@ class UnattendedInstall(object): self.unattended_file = os.environ['KVM_TEST_unattended_file'] self.qemu_img_bin = os.environ['KVM_TEST_qemu_img_binary'] + if not os.path.isabs(self.qemu_img_bin): + self.qemu_img_bin = os.path.join(kvm_test_dir, self.qemu_img_bin) self.cdrom_iso = os.path.join(kvm_test_dir, cdrom_iso) self.floppy_mount = tempfile.mkdtemp(prefix='floppy_', dir='/tmp') self.cdrom_mount = tempfile.mkdtemp(prefix='cdrom_', dir='/tmp')
Signature · 1 line
1.6.5.2