зеркало из 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
|
test[cycle_var] = 2
|
||||||
|
|
||||||
CLI_bool_options = ['tpchrome', 'tpmozafterpaint', 'tploadnocache', 'tpscrolltest', 'fnbpaint']
|
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:
|
for key in CLI_bool_options:
|
||||||
if key in test:
|
if key in test:
|
||||||
_pref_name = "talos.%s" % key
|
_pref_name = "talos.%s" % key
|
||||||
|
@ -82,6 +82,7 @@ def run_tests(config, browser_config):
|
||||||
tests = config['tests']
|
tests = config['tests']
|
||||||
tests = useBaseTestDefaults(config.get('basetest', {}), tests)
|
tests = useBaseTestDefaults(config.get('basetest', {}), tests)
|
||||||
paths = ['profile_path', 'tpmanifest', 'extensions', 'setup', 'cleanup']
|
paths = ['profile_path', 'tpmanifest', 'extensions', 'setup', 'cleanup']
|
||||||
|
|
||||||
for test in tests:
|
for test in tests:
|
||||||
# Check for profile_path, tpmanifest and interpolate based on Talos
|
# Check for profile_path, tpmanifest and interpolate based on Talos
|
||||||
# root https://bugzilla.mozilla.org/show_bug.cgi?id=727711
|
# root https://bugzilla.mozilla.org/show_bug.cgi?id=727711
|
||||||
|
@ -95,11 +96,6 @@ def run_tests(config, browser_config):
|
||||||
'/\\t:\\')))
|
'/\\t:\\')))
|
||||||
test['preferences']['talos.tpmanifest'] = test['tpmanifest']
|
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['setup'] = utils.interpolate(test['setup'])
|
||||||
test['cleanup'] = utils.interpolate(test['cleanup'])
|
test['cleanup'] = utils.interpolate(test['cleanup'])
|
||||||
|
|
||||||
|
@ -227,6 +223,7 @@ def run_tests(config, browser_config):
|
||||||
str(scripts_path))
|
str(scripts_path))
|
||||||
|
|
||||||
testname = None
|
testname = None
|
||||||
|
|
||||||
# run the tests
|
# run the tests
|
||||||
timer = utils.Timer()
|
timer = utils.Timer()
|
||||||
LOG.suite_start(tests=[test['name'] for test in tests])
|
LOG.suite_start(tests=[test['name'] for test in tests])
|
||||||
|
@ -235,6 +232,11 @@ def run_tests(config, browser_config):
|
||||||
testname = test['name']
|
testname = test['name']
|
||||||
LOG.test_start(testname)
|
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()
|
mytest = TTest()
|
||||||
|
|
||||||
# some tests like ts_paint return multiple results in a single iteration
|
# some tests like ts_paint return multiple results in a single iteration
|
||||||
|
|
Загрузка…
Ссылка в новой задаче