From patchwork Mon Aug 9 18:38:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 118456 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o79IcPM1021014 for ; Mon, 9 Aug 2010 18:38:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753363Ab0HISiX (ORCPT ); Mon, 9 Aug 2010 14:38:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47834 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752606Ab0HISiW (ORCPT ); Mon, 9 Aug 2010 14:38:22 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o79IcKh6021549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Aug 2010 14:38:20 -0400 Received: from freedom.redhat.com (vpn-10-238.rdu.redhat.com [10.11.10.238]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o79IcJlZ019547; Mon, 9 Aug 2010 14:38:19 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, dennisliu03@gmail.com, Lucas Meneghel Rodrigues Subject: [PATCH] server/autotest.py: Make an error message become an info message Date: Mon, 9 Aug 2010 15:38:16 -0300 Message-Id: <1281379096-28942-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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.3 (demeter.kernel.org [140.211.167.41]); Mon, 09 Aug 2010 18:38:26 +0000 (UTC) diff --git a/server/autotest.py b/server/autotest.py index f918b27..eb25095 100644 --- a/server/autotest.py +++ b/server/autotest.py @@ -213,11 +213,10 @@ class BaseAutotest(installable_object.InstallableObject): try: self._install_using_packaging(host, autodir) return - except global_config.ConfigError, e: + except (error.PackageInstallError, error.AutoservRunError, + global_config.ConfigError), e: logging.info("Could not install autotest using the packaging " - "system: %s", e) - except (error.PackageInstallError, error.AutoservRunError), e: - logging.error("Could not install autotest from repos") + "system: %s. Trying other methods", e) # try to install from file or directory if self.source_material: