Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2589)

Unified Diff: build/android/pylib/android_commands.py

Issue 10917123: Revert 155170 - The 'test' command is not always usable on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698