@@ -229,15 +229,15 @@ def _setup_adb_over_tcp(self):
229
229
if self .dev_ip is None :
230
230
raise OperationFailed ("failed to get board ip address" )
231
231
try :
232
- ## just disconnect the adb connection in case is remained
233
- ## by last action or last job
234
- ## that connection should be expired already
232
+ # just disconnect the adb connection in case is remained
233
+ # by last action or last job
234
+ # that connection should be expired already
235
235
self .android_adb_over_tcp_disconnect ()
236
236
except KeyboardInterrupt :
237
237
raise KeyboardInterrupt
238
238
except :
239
- ## ignore all exception
240
- ## this just in case of exception
239
+ # ignore all exception
240
+ # this just in case of exception
241
241
pass
242
242
self .android_adb_over_tcp_connect ()
243
243
self .wait_until_attached ()
@@ -321,7 +321,7 @@ def wait_until_attached(self):
321
321
def wait_home_screen (self ):
322
322
timeout = self ._client .config .android_home_screen_timeout
323
323
activity_pat = self ._client .config .android_wait_for_home_screen_activity
324
- #waiting for the home screen displayed
324
+ # waiting for the home screen displayed
325
325
try :
326
326
self .run ('logcat -s ActivityManager:I' ,
327
327
response = [activity_pat ],
@@ -331,9 +331,9 @@ def wait_home_screen(self):
331
331
logging .critical (msg )
332
332
raise CriticalError (msg )
333
333
finally :
334
- #send ctrl+c to exit the logcat command,
335
- #and make the latter command can be run on the normal
336
- #command line session, instead of the session of logcat command
334
+ # send ctrl+c to exit the logcat command,
335
+ # and make the latter command can be run on the normal
336
+ # command line session, instead of the session of logcat command
337
337
self ._connection .sendcontrol ("c" )
338
338
self .run ('' )
339
339
@@ -625,7 +625,7 @@ def boot_linaro_android_image(self, adb_check=False):
625
625
self .context .test_data .add_metadata (boottime_meta )
626
626
logging .debug ("Kernel boot time: %s seconds" % boottime )
627
627
628
- #TODO: set up proxy
628
+ # TODO: set up proxy
629
629
630
630
if not self .config .android_adb_over_usb :
631
631
try :
@@ -671,8 +671,8 @@ def boot_linaro_android_image(self, adb_check=False):
671
671
logging .critical (msg )
672
672
raise CriticalError (msg )
673
673
674
- #check if the adb connection can be created.
675
- #by adb connect dev_ip command
674
+ # check if the adb connection can be created.
675
+ # by adb connect dev_ip command
676
676
if adb_check :
677
677
try :
678
678
session = AndroidTesterCommandRunner (self )
0 commit comments