diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 98: fix clear bug in AndroidClient.check_adb_status()

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

Commit Message

Michael-Doyle Hudson Sept. 2, 2011, 3:07 a.m. UTC
------------------------------------------------------------
revno: 98
committer: Michael-Doyle Hudson <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Fri 2011-09-02 14:50:19 +1200
message:
  fix clear bug in AndroidClient.check_adb_status()
  -- but if this code was this broken, maybe it is dead?
modified:
  lava_dispatcher/android_client.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/android_client.py'
--- lava_dispatcher/android_client.py	2011-08-16 00:15:08 +0000
+++ lava_dispatcher/android_client.py	2011-09-02 02:50:19 +0000
@@ -109,15 +109,15 @@ 
         network_interface = self.board.default_network_interface 
         try:
             self.run_shell_command('netcfg %s dhcp' % \
-                default_network_interface, response = TESTER_STR,
+                network_interface, response = TESTER_STR,
                 timeout = 60)
         except:
-            print "netcfg %s dhcp exception" % default_network_interface
+            print "netcfg %s dhcp exception" % network_interface
             return False
 
         # Check network ip and setup adb connection
         ip_pattern = "(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"
-        cmd = "ifconfig %s" % default_network_interface
+        cmd = "ifconfig %s" % network_interface
         self.proc.sendline('')
         self.proc.sendline(cmd)
         try: