зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1420070 - Fix talos pageloader manifest bug; r=ahal
MozReview-Commit-ID: BewhMkvwufI --HG-- extra : rebase_source : becfa07c03035ae374f498a58c22f13fc9064120
This commit is contained in:
Родитель
f8979ebb32
Коммит
1073aa3855
|
@ -54,7 +54,7 @@ def set_tp_preferences(test, browser_config):
|
|||
test[cycle_var] = 2
|
||||
|
||||
CLI_bool_options = ['tpchrome', 'tpmozafterpaint', 'tploadnocache', 'tpscrolltest', 'fnbpaint']
|
||||
CLI_options = ['tpcycles', 'tppagecycles', 'tptimeout']
|
||||
CLI_options = ['tpcycles', 'tppagecycles', 'tptimeout', 'tpmanifest']
|
||||
for key in CLI_bool_options:
|
||||
if key in test:
|
||||
_pref_name = "talos.%s" % key
|
||||
|
@ -82,6 +82,7 @@ def run_tests(config, browser_config):
|
|||
tests = config['tests']
|
||||
tests = useBaseTestDefaults(config.get('basetest', {}), tests)
|
||||
paths = ['profile_path', 'tpmanifest', 'extensions', 'setup', 'cleanup']
|
||||
|
||||
for test in tests:
|
||||
# Check for profile_path, tpmanifest and interpolate based on Talos
|
||||
# root https://bugzilla.mozilla.org/show_bug.cgi?id=727711
|
||||
|
@ -95,11 +96,6 @@ def run_tests(config, browser_config):
|
|||
'/\\t:\\')))
|
||||
test['preferences']['talos.tpmanifest'] = test['tpmanifest']
|
||||
|
||||
if not test.get('url'):
|
||||
# set browser prefs for pageloader test setings (doesn't use cmd line args / url)
|
||||
test['url'] = None
|
||||
set_tp_preferences(test, browser_config)
|
||||
|
||||
test['setup'] = utils.interpolate(test['setup'])
|
||||
test['cleanup'] = utils.interpolate(test['cleanup'])
|
||||
|
||||
|
@ -227,6 +223,7 @@ def run_tests(config, browser_config):
|
|||
str(scripts_path))
|
||||
|
||||
testname = None
|
||||
|
||||
# run the tests
|
||||
timer = utils.Timer()
|
||||
LOG.suite_start(tests=[test['name'] for test in tests])
|
||||
|
@ -235,6 +232,11 @@ def run_tests(config, browser_config):
|
|||
testname = test['name']
|
||||
LOG.test_start(testname)
|
||||
|
||||
if not test.get('url'):
|
||||
# set browser prefs for pageloader test setings (doesn't use cmd line args / url)
|
||||
test['url'] = None
|
||||
set_tp_preferences(test, browser_config)
|
||||
|
||||
mytest = TTest()
|
||||
|
||||
# some tests like ts_paint return multiple results in a single iteration
|
||||
|
|
Загрузка…
Ссылка в новой задаче