From: Lucas Meneghel Rodrigues Subject: [PATCH 1/6] KVM test: Added floppy and tftp options to qemu command Date: Mon, 5 Oct 2009 22:03:04 -0300 Message-ID: <1254790989-14204-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , David Huff To: autotest@test.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:65033 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754254AbZJFBDk (ORCPT ); Mon, 5 Oct 2009 21:03:40 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This allows you to not specify the full path in the config file, appends to the image dir. Signed-off-by: David Huff --- client/tests/kvm/kvm_vm.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index f37c6f5..595b749 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -264,6 +264,18 @@ class VM: iso = kvm_utils.get_path(root_dir, iso) qemu_cmd += " -cdrom %s" % iso + # We may want to add {floppy_otps} parameter for -fda + # {fat:floppy:}/path/. However vvfat is not usually recommended + floppy = params.get("floppy") + if floppy: + floppy = os.path.join(image_dir, floppy) + qemu_cmd += " -fda %s" % floppy + + tftp = params.get("tftp") + if tftp: + tftp = os.path.join(image_dir, tftp) + qemu_cmd += " -tftp %s" % tftp + extra_params = params.get("extra_params") if extra_params: qemu_cmd += " %s" % extra_params -- 1.6.2.5