aboutsummaryrefslogtreecommitdiff
path: root/buildbot_test_toolchains.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildbot_test_toolchains.py')
-rwxr-xr-xbuildbot_test_toolchains.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index 19c31b54..88ab4052 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -84,10 +84,12 @@ class ToolchainComparator(object):
recipe=False,
test=False,
noschedv2=False,
+ chrome_src="",
):
self._board = board
self._remotes = remotes
self._chromeos_root = chromeos_root
+ self._chrome_src = chrome_src
self._base_dir = os.getcwd()
self._ce = command_executer.GetCommandExecuter()
self._l = logger.GetLogger()
@@ -178,7 +180,12 @@ class ToolchainComparator(object):
test_args: --story-tag-filter=typical
iterations: 3
run_local: False
- retries: 0
+ }
+
+ benchmark: platform.ReportDiskUsage {
+ suite: tast
+ iterations: 1
+ run_local: False
}
"""
@@ -190,11 +197,13 @@ class ToolchainComparator(object):
official_image = """
vanilla_image {
chromeos_root: %s
+ chrome_src: %s
build: %s
compiler: llvm
}
""" % (
self._chromeos_root,
+ self._chrome_src,
vanilla_image,
)
f.write(official_image)
@@ -208,6 +217,7 @@ class ToolchainComparator(object):
experiment_image = """
%s {
chromeos_root: %s
+ chrome_src: %s
build: %s
autotest_path: %s
compiler: %s
@@ -215,6 +225,7 @@ class ToolchainComparator(object):
""" % (
label_string,
self._chromeos_root,
+ self._chrome_src,
trybot_image,
autotest_files,
compiler_string,
@@ -338,6 +349,14 @@ def Main(argv):
help="The chromeos root from which to run tests.",
)
parser.add_argument(
+ "--chrome_src",
+ dest="chrome_src",
+ default="",
+ help="The path to the source of chrome. "
+ "This is used to run telemetry benchmarks. "
+ "The default one is the src inside chroot.",
+ )
+ parser.add_argument(
"--weekday",
default="",
dest="weekday",
@@ -398,6 +417,7 @@ def Main(argv):
options.recipe,
options.test,
options.noschedv2,
+ chrome_src=options.chrome_src,
)
return fc.DoAll()