From patchwork Tue Oct 27 04:03:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Cao, Chen" X-Patchwork-Id: 56028 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 n9R453Ut029840 for ; Tue, 27 Oct 2009 04:05:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750845AbZJ0EEz (ORCPT ); Tue, 27 Oct 2009 00:04:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750834AbZJ0EEz (ORCPT ); Tue, 27 Oct 2009 00:04:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5669 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbZJ0EEy (ORCPT ); Tue, 27 Oct 2009 00:04:54 -0400 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 n9R44wLQ004010; Tue, 27 Oct 2009 00:04:58 -0400 Received: from localhost.localdomain (dhcp-66-70-146.nay.redhat.com [10.66.70.146] (may be forged)) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9R44tXj018038; Tue, 27 Oct 2009 00:04:56 -0400 From: "Cao, Chen" To: lmr@redhat.com, autotest@test.kernel.org Cc: kvm@vger.kernel.org, "Cao, Chen" Subject: [PATCH] KVM Test: Add re.IGNORECASE to re.compile to verify_ip_address_ in kvm_utils.py Date: Tue, 27 Oct 2009 12:03:36 +0800 Message-Id: <1256616216-7179-1-git-send-email-kcao@redhat.com> 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_utils.py b/client/tests/kvm/kvm_utils.py index f72984a..934f223 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -190,7 +190,7 @@ def verify_ip_address_ownership(ip, macs, timeout=10.0): # Compile a regex that matches the given IP address and any of the given # MAC addresses mac_regex = "|".join("(%s)" % mac for mac in macs) - regex = re.compile(r"\b%s\b.*\b(%s)\b" % (ip, mac_regex)) + regex = re.compile(r"\b%s\b.*\b(%s)\b" % (ip, mac_regex), re.IGNORECASE) # Check the ARP cache o = commands.getoutput("/sbin/arp -n")