diff mbox

[Branch,~linaro-validation/lava-test/trunk] Rev 97: fix for bug 856635

Message ID 20111004182413.24758.38730.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Paul Larson Oct. 4, 2011, 6:24 p.m. UTC
Merge authors:
  Le Chi Thu le.chi.thu@linaro.org <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 <paul.larson@canonical.com>
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
diff mbox

Patch

=== 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()