From patchwork Fri Jan 15 20:22:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 73213 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0FKMSHY018615 for ; Fri, 15 Jan 2010 20:22:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758212Ab0AOUW0 (ORCPT ); Fri, 15 Jan 2010 15:22:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758211Ab0AOUW0 (ORCPT ); Fri, 15 Jan 2010 15:22:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33830 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757886Ab0AOUWZ (ORCPT ); Fri, 15 Jan 2010 15:22:25 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0FKMOF8006865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Jan 2010 15:22:24 -0500 Received: from localhost.localdomain (vpn-9-106.rdu.redhat.com [10.11.9.106]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0FKMMLm005065; Fri, 15 Jan 2010 15:22:22 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, mgoldish@redhat.com, Lucas Meneghel Rodrigues Subject: [PATCH 1/2] KVM test: Add a new (optional) extra param to VM, cdrom_extra Date: Fri, 15 Jan 2010 18:22:18 -0200 Message-Id: <1263586939-19464-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 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 7229b79..1dcdcc4 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -270,6 +270,14 @@ class VM: iso = kvm_utils.get_path(root_dir, iso) qemu_cmd += " -cdrom %s" % iso + # Even though this is not a really scalable approach, + # it doesn't seem like we are going to need more than + # 2 CDs active on the same VM. + iso_extra = params.get("cdrom_extra") + if iso_extra: + iso_extra = kvm_utils.get_path(root_dir, iso_extra) + qemu_cmd += " -cdrom %s" % iso_extra + # We may want to add {floppy_otps} parameter for -fda # {fat:floppy:}/path/. However vvfat is not usually recommended floppy = params.get("floppy")