[iOS] Allow passing "info_plist_target" to "test" template.
The "test" template forwards its arguments to "ios_app_bundle" that
supports either "info_plist" or "info_plist_target". As those two
parameters are exclusive, do not define "info_plist" in the "test"
template if "info_plist_target" is defined by invoker.
The "info_plist_target" is generally used when the Info.plist file
need to be preprocessed using build/mac/tweak_info_plist.py which
is necessary for some downstream iOS tests.
BUG=603101
Review-Url: https://codereview.chromium.org/2040223002
Cr-Commit-Position: refs/heads/master@{#398500}
diff --git a/testing/test.gni b/testing/test.gni
index 385bc535..66d4984 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -300,7 +300,7 @@
# Provide sensible defaults in case invoker did not define any of those
# required variables.
- if (!defined(info_plist)) {
+ if (!defined(info_plist) && !defined(info_plist_target)) {
info_plist = "//testing/gtest_ios/unittest-Info.plist"
}
if (!defined(entitlements_path)) {