Index: build/android/pylib/android_commands.py |
=================================================================== |
--- build/android/pylib/android_commands.py (revision 155284) |
+++ build/android/pylib/android_commands.py (working copy) |
@@ -1011,15 +1011,8 @@ |
assert '"' not in file_name, 'file_name cannot contain double quotes' |
status = self._adb.SendShellCommand( |
'\'test -f "%s"; echo $?\'' % (file_name)) |
- if not status[0].find('test: not found'): |
- return int(status) == 0 |
+ return int(status) == 0 |
- status = self._adb.SendShellCommand('ls "%s"' % (file_name)) |
- if not status[0].find('No such file or directory'): |
- return True |
- |
- return False |
- |
def RunMonkey(self, package_name, category=None, throttle=100, seed=None, |
event_count=10000, verbosity=1, extra_args=''): |
"""Runs monkey test for a given package. |