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

Side by Side Diff: build/android/test_package_apk.py

Issue 10391172: Fix test filter filename for APK based tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the if-else logic from single_test_runner Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/single_test_runner.py ('k') | build/android/test_package_executable.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 import cmd_helper 9 import cmd_helper
10 import logging 10 import logging
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 def StripAndCopyExecutable(self): 81 def StripAndCopyExecutable(self):
82 # Always uninstall the previous one (by activity name); we don't 82 # Always uninstall the previous one (by activity name); we don't
83 # know what was embedded in it. 83 # know what was embedded in it.
84 logging.info('Uninstalling any activity with the test name') 84 logging.info('Uninstalling any activity with the test name')
85 self.adb.Adb().SendCommand('uninstall org.chromium.native_test', 85 self.adb.Adb().SendCommand('uninstall org.chromium.native_test',
86 timeout_time=60*5) 86 timeout_time=60*5)
87 logging.info('Installing new apk') 87 logging.info('Installing new apk')
88 self.adb.Adb().SendCommand('install -r ' + self.test_suite_full, 88 self.adb.Adb().SendCommand('install -r ' + self.test_suite_full,
89 timeout_time=60*5) 89 timeout_time=60*5)
90 logging.info('Install has completed.') 90 logging.info('Install has completed.')
91
92 def GetDisabledTestsBaseFileName(self):
93 """Returns the base filename of gtest filter."""
94 # APK test suite names end with '-debug.apk'
95 return self.test_suite_basename.rsplit('-debug', 1)[0]
OLDNEW
« no previous file with comments | « build/android/single_test_runner.py ('k') | build/android/test_package_executable.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698