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

Unified Diff: build/config/android/internal_rules.gni

Issue 2851523002: [android] Write a runner script to the top-level output dir for gtests. (Closed)
Patch Set: trivial rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/test.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index 218fdfc97771e1fa9f99e7c7623350c9722cc8f7..813686305c03adcaa679923f6c559c0b866a43ee 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -615,7 +615,12 @@ template("test_runner_script") {
test_runner_args += [ "--tool=asan" ]
}
- generated_script = "$root_build_dir/bin/run_${_test_name}"
+ if (defined(invoker.generated_script)) {
+ assert(_test_name != "" || true) # Mark _test_name as used.
+ generated_script = invoker.generated_script
+ } else {
+ generated_script = "$root_build_dir/bin/run_${_test_name}"
+ }
outputs = [
generated_script,
]
« no previous file with comments | « no previous file | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698