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

Unified Diff: testing/test.gni

Issue 1893063002: 🐛 Make the Android test apks depend on their run_ scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert to PS1 Created 4 years, 8 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 | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/test.gni
diff --git a/testing/test.gni b/testing/test.gni
index 84c51e325f8dac0ddec6a99c16c92facc4869b57..8434fc5b3b48ca2fea3d282587f26e354e4c5d32 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -25,6 +25,7 @@ template("test") {
_output_name = invoker.output_name
}
+ _test_runner_target = "${_output_name}__test_runner_script"
_wrapper_script_vars = [
"isolate_file",
"shard_timeout",
@@ -105,6 +106,16 @@ template("test") {
install_script_name = "install_${invoker.output_name}"
}
deps += [ ":$_library_target" ]
+
+ # TODO(agrieve): Remove this data_dep once bots don't build the _apk
+ # target (post-GYP).
+ # It's a bit backwards for the apk to depend on the runner script, since
+ # the apk is conceptually a runtime_dep of the script. However, it is
+ # currently necessary because the bots build this _apk target directly
+ # rather than the group() below.
+ data_deps = [
+ ":$_test_runner_target",
+ ]
}
# Incremental test targets work only for .apks.
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698