From patchwork Fri Oct 9 20:40:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 52827 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n99KlVFU031534 for ; Fri, 9 Oct 2009 20:47:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760694AbZJIUkz (ORCPT ); Fri, 9 Oct 2009 16:40:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756680AbZJIUkz (ORCPT ); Fri, 9 Oct 2009 16:40:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36067 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754774AbZJIUky (ORCPT ); Fri, 9 Oct 2009 16:40:54 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n99KeR6O006976; Fri, 9 Oct 2009 16:40:28 -0400 Received: from localhost.localdomain (vpn-12-86.rdu.redhat.com [10.11.12.86]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n99KePUI002182; Fri, 9 Oct 2009 16:40:26 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , David Huff Subject: [PATCH 1/6] KVM test: Added floppy and tftp options to qemu command Date: Fri, 9 Oct 2009 17:40:19 -0300 Message-Id: <1255120824-13481-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index d4461d3..82f1eb4 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(root_dir, floppy) + qemu_cmd += " -fda %s" % floppy + + tftp = params.get("tftp") + if tftp: + tftp = os.path.join(root_dir, tftp) + qemu_cmd += " -tftp %s" % tftp + extra_params = params.get("extra_params") if extra_params: qemu_cmd += " %s" % extra_params