diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 665: Merge a check for adb

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

Commit Message

Tyler Baker Sept. 4, 2013, 5:51 p.m. UTC
Merge authors:
  vishal (vishalbhoj)
Related merge proposals:
  https://code.launchpad.net/~vishalbhoj/lava-dispatcher/check-adb/+merge/183697
  proposed by: vishal (vishalbhoj)
  review: Approve - Tyler Baker (tyler-baker)
------------------------------------------------------------
revno: 665 [merge]
committer: Tyler Baker <tyler.baker@linaro.org>
branch nick: lava-dispatcher-tip
timestamp: Wed 2013-09-04 10:19:03 -0700
message:
  Merge a check for adb
modified:
  lava_dispatcher/client/base.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/client/base.py'
--- lava_dispatcher/client/base.py	2013-08-29 17:57:34 +0000
+++ lava_dispatcher/client/base.py	2013-09-03 15:16:49 +0000
@@ -621,6 +621,11 @@ 
         session.run('setprop service.adb.tcp.port %s' % adb_port)
         session.run('stop adbd')
         session.run('start adbd')
+        try:
+            session.connect()
+        finally:
+            session.disconnect()
+
 
     def _disable_adb_over_usb(self):
         logging.info("Disabling adb over USB")