From patchwork Tue Jan 19 14:18:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 73884 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 o0JEHgS9014692 for ; Tue, 19 Jan 2010 14:17:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560Ab0ASORe (ORCPT ); Tue, 19 Jan 2010 09:17:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752088Ab0ASORe (ORCPT ); Tue, 19 Jan 2010 09:17:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41877 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751753Ab0ASORd (ORCPT ); Tue, 19 Jan 2010 09:17:33 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0JEHWQm012505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jan 2010 09:17:32 -0500 Received: from localhost (vpn-233-82.phx2.redhat.com [10.3.233.82]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0JEHVHT025884; Tue, 19 Jan 2010 09:17:32 -0500 Date: Tue, 19 Jan 2010 22:18:04 +0800 From: Amos Kong To: autotest@test.kernel.org Cc: kvm@vger.kernel.org Subject: [Autotest][PATCH] KVM-test: Add new drive option 'werror' Message-ID: <20100119141804.GA5173@debian> Reply-To: Amos Kong MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 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 7c55ba0..8985f25 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -231,6 +231,8 @@ class VM: qemu_cmd += ",if=%s" % image_params.get("drive_format") if image_params.get("drive_cache"): qemu_cmd += ",cache=%s" % image_params.get("drive_cache") + if image_params.get("drive_werror"): + qemu_cmd += ",werror=%s" % image_params.get("drive_werror") if image_params.get("drive_serial"): qemu_cmd += ",serial=%s" % image_params.get("drive_serial") if image_params.get("image_snapshot") == "yes":