From patchwork Wed Oct 28 07:20:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 56243 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 n9S7Kjkv013037 for ; Wed, 28 Oct 2009 07:20:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932581AbZJ1HUi (ORCPT ); Wed, 28 Oct 2009 03:20:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932580AbZJ1HUi (ORCPT ); Wed, 28 Oct 2009 03:20:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932579AbZJ1HUh (ORCPT ); Wed, 28 Oct 2009 03:20:37 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9S7Kfu5007580; Wed, 28 Oct 2009 03:20:41 -0400 Received: from mail05.corp.redhat.com (zmail05.collab.prod.int.phx2.redhat.com [10.5.5.46]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9S7KfRu026928; Wed, 28 Oct 2009 03:20:41 -0400 Date: Wed, 28 Oct 2009 03:20:41 -0400 (EDT) From: Michael Goldish To: Chen Cao Cc: kvm@vger.kernel.org, lmr@redhat.com, autotest@test.kernel.org Message-ID: <1125320135.1122981256714441354.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> In-Reply-To: <1162344679.1122961256714375025.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Subject: Re: [PATCH] KVM Test: Add re.IGNORECASE to re.compile to verify_ip_address_ in kvm_utils.py MIME-Version: 1.0 X-Originating-IP: [10.5.5.71] X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 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")