From patchwork Tue Oct 4 18:24:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 4509 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 80FD423EF6 for ; Tue, 4 Oct 2011 18:24:15 +0000 (UTC) Received: from mail-dy0-f52.google.com (mail-dy0-f52.google.com [209.85.220.52]) by fiordland.canonical.com (Postfix) with ESMTP id 5E38BA180F0 for ; Tue, 4 Oct 2011 18:24:15 +0000 (UTC) Received: by dyj10 with SMTP id 10so70890dyj.11 for ; Tue, 04 Oct 2011 11:24:15 -0700 (PDT) Received: by 10.223.57.17 with SMTP id a17mr2136462fah.65.1317752654980; Tue, 04 Oct 2011 11:24:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.23.170 with SMTP id n10cs59974laf; Tue, 4 Oct 2011 11:24:14 -0700 (PDT) Received: by 10.213.3.71 with SMTP id 7mr894221ebm.68.1317752653801; Tue, 04 Oct 2011 11:24:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id t9si14488413weq.104.2011.10.04.11.24.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Oct 2011 11:24:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RB9f3-0004jt-8w for ; Tue, 04 Oct 2011 18:24:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 3609EE01FB for ; Tue, 4 Oct 2011 18:24:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-test X-Launchpad-Branch: ~linaro-validation/lava-test/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 97 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-test/trunk] Rev 97: fix for bug 856635 Message-Id: <20111004182413.24758.38730.launchpad@ackee.canonical.com> Date: Tue, 04 Oct 2011 18:24:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14085"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 5ca3056c0aacc3bce2b639cc806089b27b1c30e5 Merge authors: Le Chi Thu le.chi.thu@linaro.org Related merge proposals: https://code.launchpad.net/~le-chi-thu/lava-test/fix-856635/+merge/77230 proposed by: Le Chi Thu (le-chi-thu) review: Approve - Paul Larson (pwlars) ------------------------------------------------------------ revno: 97 [merge] committer: Paul Larson branch nick: lava-test timestamp: Tue 2011-10-04 13:22:06 -0500 message: fix for bug 856635 modified: lava_test/core/providers.py --- lp:lava-test https://code.launchpad.net/~linaro-validation/lava-test/trunk You are subscribed to branch lp:lava-test. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-test/trunk/+edit-subscription === modified file 'lava_test/core/providers.py' --- lava_test/core/providers.py 2011-09-23 08:10:25 +0000 +++ lava_test/core/providers.py 2011-09-27 20:27:39 +0000 @@ -156,10 +156,13 @@ return self._cache = {} for test_url in self.entries: - test = self._load_remote_test(test_url) - if test.test_id in self._cache: - raise ValueError("Duplicate test %s declared" % test.test_id) - self._cache[test.test_id] = test + try: + test = self._load_remote_test(test_url) + if test.test_id in self._cache: + raise ValueError("Duplicate test %s declared" % test.test_id) + self._cache[test.test_id] = test + except: + print("Warning: Failed to load test from '%s'" % test_url) def __iter__(self): self._fill_cache()