From patchwork Fri Jan 14 08:58:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 477821 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0E8uc8c019663 for ; Fri, 14 Jan 2011 08:56:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757304Ab1ANI4b (ORCPT ); Fri, 14 Jan 2011 03:56:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32938 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478Ab1ANI4b (ORCPT ); Fri, 14 Jan 2011 03:56:31 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0E8uTwj004274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Jan 2011 03:56:30 -0500 Received: from dhcp-91-173.nay.redhat.com (dhcp-91-173.nay.redhat.com [10.66.91.173]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0E8uRSw031053; Fri, 14 Jan 2011 03:56:28 -0500 Subject: [PATCH] KVM-test: enospc.py: Fix device name of ide disk To: autotest@test.kernel.org From: Amos Kong Cc: kvm@vger.kernel.org Date: Fri, 14 Jan 2011 16:58:00 +0800 Message-ID: <20110114085800.26801.20966.stgit@dhcp-91-173.nay.redhat.com> In-Reply-To: <4D30090A.2070908@redhat.com> References: <4D30090A.2070908@redhat.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 14 Jan 2011 08:56:38 +0000 (UTC) diff --git a/client/tests/kvm/tests/enospc.py b/client/tests/kvm/tests/enospc.py index 21ea24e..837d73f 100644 --- a/client/tests/kvm/tests/enospc.py +++ b/client/tests/kvm/tests/enospc.py @@ -28,7 +28,8 @@ def run_enospc(test, params, env): if drive_format == "virtio": devname = "/dev/vdb" elif drive_format == "ide": - devname = "/dev/hdb" + output = session_serial.cmd_output("dir /dev") + devname = "/dev/" + re.findall("([sh]db)\s", output)[0] elif drive_format == "scsi": devname = "/dev/sdb" cmd = params.get("background_cmd")