Bug 1276915 - Override all test cycles when profiling; r=jmaher

MozReview-Commit-ID: 86cL0OMhL3a

--HG--
extra : rebase_source : 69601e9b329b02331406b1a15429920f1326c066
This commit is contained in:
Rob Wood 2016-06-23 10:07:55 -04:00
Родитель cb71d8fa20
Коммит a867555f71
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -47,6 +47,14 @@ def buildCommandLine(test):
if 'tpmanifest' not in test:
raise TalosError("tpmanifest not found in test: %s" % test)
# if profiling is on, override tppagecycles to prevent test hanging
if test['sps_profile']:
LOG.info("sps profiling is enabled so talos is reducing the number "
"of cycles, please disregard reported numbers")
for cycle_var in ['tppagecycles', 'tpcycles', 'cycles']:
if test[cycle_var] > 2:
test[cycle_var] = 2
# build pageloader command from options
url = ['-tp', test['tpmanifest']]
CLI_bool_options = ['tpchrome', 'tpmozafterpaint', 'tpdisable_e10s',