Support passing in --chrome-branded from GN to run_web_tests.py
On Luci the args.gn cannot be found so instead of looking magically
for some output actually pass the configuration in using args.
This is needed to be able to run PPAPI web_tests on the official
chrome bot as chrome-branded is set there and the
devtools-frontend-internal target is used for web_tests.
Bug: b:303417958
Change-Id: Ie77f1b95c00e974c7a921733a77996bcfc9dc294
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053382
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: Weizhong Xia <[email protected]>
Commit-Queue: Dave Tapuska <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1230776}
diff --git a/BUILD.gn b/BUILD.gn
index 965efcf..3d036c1 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1195,7 +1195,6 @@
}
data = [
- "$root_out_dir/args.gn",
"//build/skia_gold_common/",
"//testing/scripts/common.py",
"//testing/scripts/run_isolated_script_test.py",
@@ -1260,6 +1259,9 @@
_common_web_test_args += [ "--timeout-ms=12000" ]
}
}
+ if (is_chrome_branded) {
+ _common_web_test_args += [ "--chrome-branded" ]
+ }
if (is_android) {
_common_web_test_args += [