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

Unified Diff: build/android/pylib/gtest/gtest_test_instance.py

Issue 1848033005: Revert of 🍬 GN: Make breakpad_unittests & sandbox_linux_unittests use test() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-minor-renames
Patch Set: Created 4 years, 9 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 | « breakpad/BUILD.gn ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/gtest_test_instance.py
diff --git a/build/android/pylib/gtest/gtest_test_instance.py b/build/android/pylib/gtest/gtest_test_instance.py
index 915164532f015df313c40e6944ad424cb65f76c7..f5b2c69ada928275590ee80b504ddd45e731baef 100644
--- a/build/android/pylib/gtest/gtest_test_instance.py
+++ b/build/android/pylib/gtest/gtest_test_instance.py
@@ -144,30 +144,9 @@
self._shard_timeout = args.shard_timeout
self._skip_clear_data = args.skip_clear_data
self._suite = args.suite_name[0]
- self._exe_path = None
-
- # GYP:
- if args.executable_path:
- self._exe_path = os.path.abspath(args.executable_path)
- else:
- # TODO(agrieve): Remove hardcoding after recipes are updated.
- if self._suite == 'sandbox_linux_unittests':
- exe_path = os.path.join(constants.GetOutDirectory(), 'obj', 'sandbox',
- 'linux', 'sandbox_linux_unittests',
- 'sandbox_linux_unittests')
- elif self._suite == 'breakpad_unittests':
- exe_path = os.path.join(constants.GetOutDirectory(), 'obj', 'breakpad',
- 'breakpad_unittests', 'breakpad_unittests')
- else:
- exe_path = None
-
- if exe_path and os.path.exists(exe_path):
- self._exe_path = exe_path
- else:
- # GYP location:
- exe_path = os.path.join(constants.GetOutDirectory(), self._suite)
- if os.path.exists(exe_path):
- self._exe_path = exe_path
+
+ self._exe_path = os.path.join(constants.GetOutDirectory(),
+ self._suite)
incremental_part = ''
if args.test_apk_incremental_install_script:
@@ -192,6 +171,8 @@
self._extras[EXTRA_SHARD_NANO_TIMEOUT] = int(1e9 * self._shard_timeout)
self._shard_timeout = 900
+ if not os.path.exists(self._exe_path):
+ self._exe_path = None
if not self._apk_helper and not self._exe_path:
error_func('Could not find apk or executable for %s' % self._suite)
« no previous file with comments | « breakpad/BUILD.gn ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698