From patchwork Mon Jul 6 00:57:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 34177 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 n660vtSk026541 for ; Mon, 6 Jul 2009 00:57:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756741AbZGFA5t (ORCPT ); Sun, 5 Jul 2009 20:57:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756255AbZGFA5t (ORCPT ); Sun, 5 Jul 2009 20:57:49 -0400 Received: from mx2.redhat.com ([66.187.237.31]:46793 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754782AbZGFA5s (ORCPT ); Sun, 5 Jul 2009 20:57:48 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n660vpmG018934; Sun, 5 Jul 2009 20:57:51 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n660vot5004964; Sun, 5 Jul 2009 20:57:50 -0400 Received: from localhost.localdomain (vpn-10-22.bos.redhat.com [10.16.10.22]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n660vmd4001463; Sun, 5 Jul 2009 20:57:49 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: Fixing kvm release tag detection Date: Sun, 5 Jul 2009 21:57:48 -0300 Message-Id: <1246841868-6654-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The recent sourceforge facelift/changes broke our ability to determine KVM release tags. This patch fixes up things. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/kvm_utils.py | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index a37d322..b2b0d1a 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -139,13 +139,9 @@ def get_latest_kvm_release_tag(release_dir): f = open(local_web_page, "r") data = f.read() f.close() - rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE) + rx = re.compile("kvm-(\d+).tar.gz", re.IGNORECASE) matches = rx.findall(data) package_id = matches[0] - #package_id = 209008 - rx = re.compile("package_id=%s.*release_id=\d+\">(\d+)" % package_id, - re.IGNORECASE) - matches = rx.findall(data) return matches[0] # the first match contains the latest release tag except Exception, e: message = "Could not fetch latest KVM release tag: %s" % str(e)