diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 625: fix to treat ADBConnectError as err in run method of job.py, so that we can get the trace of the ...

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

Commit Message

Yongqin Liu June 13, 2013, 1:52 a.m. UTC
Merge authors:
  Yongqin Liu (liuyq0307)
Related merge proposals:
  https://code.launchpad.net/~liuyq0307/lava-dispatcher/ADBConnectError-as-err/+merge/168222
  proposed by: Yongqin Liu (liuyq0307)
  review: Approve - Antonio Terceiro (terceiro)
------------------------------------------------------------
revno: 625 [merge]
committer: Yongqin Liu <yongqin.liu@linaro.org>
branch nick: lava-dispatcher
timestamp: Thu 2013-06-13 09:51:01 +0800
message:
  fix to treat ADBConnectError as err in run method of job.py, so that we can get the trace of the error
modified:
  lava_dispatcher/job.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/job.py'
--- lava_dispatcher/job.py	2013-04-23 10:33:49 +0000
+++ lava_dispatcher/job.py	2013-06-08 02:59:56 +0000
@@ -176,7 +176,7 @@ 
                 try:
                     status = 'fail'
                     action.run(**params)
-                except ADBConnectError:
+                except ADBConnectError as err:
                     if cmd.get('command') == 'boot_linaro_android_image':
                         logging.warning(('[ACTION-E] %s failed to create the'
                                          ' adb connection') % (cmd['command']))