gecko-dev/testing/talos/mach_commands.py

114 строки
3.9 KiB
Python
Исходник Обычный вид История

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Integrates Talos mozharness with mach
from __future__ import absolute_import, print_function, unicode_literals
import os
import sys
import json
import socket
from mozbuild.base import MozbuildObject, MachCommandBase
from mach.decorators import CommandProvider, Command
HERE = os.path.dirname(os.path.realpath(__file__))
class TalosRunner(MozbuildObject):
def run_test(self, talos_args):
"""
We want to do couple of things before running Talos
1. Clone mozharness
2. Make config for Talos Mozharness
3. Run mozharness
"""
self.init_variables(talos_args)
self.make_config()
self.write_config()
self.make_args()
return self.run_mozharness()
def init_variables(self, talos_args):
self.talos_dir = os.path.join(self.topsrcdir, 'testing', 'talos')
self.mozharness_dir = os.path.join(self.topsrcdir, 'testing',
'mozharness')
self.talos_json = os.path.join(self.talos_dir, 'talos.json')
self.config_file_path = os.path.join(self._topobjdir, 'testing',
'talos-in_tree_conf.json')
self.binary_path = self.get_binary_path()
self.virtualenv_script = os.path.join(self.topsrcdir, 'python',
'virtualenv', 'virtualenv.py')
self.virtualenv_path = os.path.join(self._topobjdir, 'testing',
'talos-venv')
self.python_interp = sys.executable
self.talos_args = talos_args
def make_config(self):
self.config = {
'run_local': True,
'talos_json': self.talos_json,
'binary_path': self.binary_path,
'log_name': 'talos',
'virtualenv_path': self.virtualenv_path,
'pypi_url': 'http://pypi.python.org/simple',
'base_work_dir': self.mozharness_dir,
'exes': {
'python': self.python_interp,
'virtualenv': [self.python_interp, self.virtualenv_script]
},
'title': socket.gethostname(),
'default_actions': [
'populate-webroot',
'create-virtualenv',
'run-tests',
],
'talos_extra_options': ['--develop'] + self.talos_args,
}
def make_args(self):
self.args = {
Bug 1195288 - consider using python webserver for production talos. r=jmaher Always use an in-process webserver, removing the need for apache - and hopefuly providing better accuracy for numbers. This means that we know have to copy the pagesets in the talos dir on harness. On windows, some pagesets paths were too long due to that, so the solution is to replace "page_load_test" with "tests". --HG-- rename : testing/talos/talos/page_load_test/a11y/a11y.js => testing/talos/talos/tests/a11y/a11y.js rename : testing/talos/talos/page_load_test/a11y/a11y.manifest => testing/talos/talos/tests/a11y/a11y.manifest rename : testing/talos/talos/page_load_test/a11y/dhtml.html => testing/talos/talos/tests/a11y/dhtml.html rename : testing/talos/talos/page_load_test/a11y/tablemutation.html => testing/talos/talos/tests/a11y/tablemutation.html rename : testing/talos/talos/page_load_test/canvasmark/HelveticaNeueLTStd-Lt.otf => testing/talos/talos/tests/canvasmark/HelveticaNeueLTStd-Lt.otf rename : testing/talos/talos/page_load_test/canvasmark/HelveticaNeueLTStd-Md.otf => testing/talos/talos/tests/canvasmark/HelveticaNeueLTStd-Md.otf rename : testing/talos/talos/page_load_test/canvasmark/canvasmark.manifest => testing/talos/talos/tests/canvasmark/canvasmark.manifest rename : testing/talos/talos/page_load_test/canvasmark/images/asteroid1.png => testing/talos/talos/tests/canvasmark/images/asteroid1.png rename : testing/talos/talos/page_load_test/canvasmark/images/asteroid2.png => testing/talos/talos/tests/canvasmark/images/asteroid2.png rename : testing/talos/talos/page_load_test/canvasmark/images/asteroid3.png => testing/talos/talos/tests/canvasmark/images/asteroid3.png rename : testing/talos/talos/page_load_test/canvasmark/images/asteroid4.png => testing/talos/talos/tests/canvasmark/images/asteroid4.png rename : testing/talos/talos/page_load_test/canvasmark/images/bg3_1.jpg => testing/talos/talos/tests/canvasmark/images/bg3_1.jpg rename : testing/talos/talos/page_load_test/canvasmark/images/canvasmark2013.jpg => testing/talos/talos/tests/canvasmark/images/canvasmark2013.jpg rename : testing/talos/talos/page_load_test/canvasmark/images/enemyship1.png => testing/talos/talos/tests/canvasmark/images/enemyship1.png rename : testing/talos/talos/page_load_test/canvasmark/images/fruit.jpg => testing/talos/talos/tests/canvasmark/images/fruit.jpg rename : testing/talos/talos/page_load_test/canvasmark/images/player.png => testing/talos/talos/tests/canvasmark/images/player.png rename : testing/talos/talos/page_load_test/canvasmark/images/texture5.png => testing/talos/talos/tests/canvasmark/images/texture5.png rename : testing/talos/talos/page_load_test/canvasmark/index.html => testing/talos/talos/tests/canvasmark/index.html rename : testing/talos/talos/page_load_test/canvasmark/license.txt => testing/talos/talos/tests/canvasmark/license.txt rename : testing/talos/talos/page_load_test/canvasmark/ostrich-black-webfont.woff => testing/talos/talos/tests/canvasmark/ostrich-black-webfont.woff rename : testing/talos/talos/page_load_test/canvasmark/scripts/canvasmark_v6.js => testing/talos/talos/tests/canvasmark/scripts/canvasmark_v6.js rename : testing/talos/talos/page_load_test/canvasmark/scripts/jquery-1.4.2.min.js => testing/talos/talos/tests/canvasmark/scripts/jquery-1.4.2.min.js rename : testing/talos/talos/page_load_test/canvasmark/scripts/k3d-min.js => testing/talos/talos/tests/canvasmark/scripts/k3d-min.js rename : testing/talos/talos/page_load_test/canvasmark/scripts/mathlib-min.js => testing/talos/talos/tests/canvasmark/scripts/mathlib-min.js rename : testing/talos/talos/page_load_test/devtools/addon/chrome.manifest => testing/talos/talos/tests/devtools/addon/chrome.manifest rename : testing/talos/talos/page_load_test/devtools/addon/content/Profiler.js => testing/talos/talos/tests/devtools/addon/content/Profiler.js rename : testing/talos/talos/page_load_test/devtools/addon/content/addon-test-frontend.js => testing/talos/talos/tests/devtools/addon/content/addon-test-frontend.js rename : testing/talos/talos/page_load_test/devtools/addon/content/damp.html => testing/talos/talos/tests/devtools/addon/content/damp.html rename : testing/talos/talos/page_load_test/devtools/addon/content/damp.js => testing/talos/talos/tests/devtools/addon/content/damp.js rename : testing/talos/talos/page_load_test/devtools/addon/content/damp.overlay.xul => testing/talos/talos/tests/devtools/addon/content/damp.overlay.xul rename : testing/talos/talos/page_load_test/devtools/addon/content/framescript.js => testing/talos/talos/tests/devtools/addon/content/framescript.js rename : testing/talos/talos/page_load_test/devtools/addon/content/pages/simple.html => testing/talos/talos/tests/devtools/addon/content/pages/simple.html rename : testing/talos/talos/page_load_test/devtools/addon/install.rdf => testing/talos/talos/tests/devtools/addon/install.rdf rename : testing/talos/talos/page_load_test/devtools/damp.manifest => testing/talos/talos/tests/devtools/damp.manifest rename : testing/talos/talos/page_load_test/dromaeo/JSON.php => testing/talos/talos/tests/dromaeo/JSON.php rename : testing/talos/talos/page_load_test/dromaeo/LICENSE => testing/talos/talos/tests/dromaeo/LICENSE rename : testing/talos/talos/page_load_test/dromaeo/application.css => testing/talos/talos/tests/dromaeo/application.css rename : testing/talos/talos/page_load_test/dromaeo/css.manifest => testing/talos/talos/tests/dromaeo/css.manifest rename : testing/talos/talos/page_load_test/dromaeo/cssquery-dojo.html => testing/talos/talos/tests/dromaeo/cssquery-dojo.html rename : testing/talos/talos/page_load_test/dromaeo/cssquery-ext.html => testing/talos/talos/tests/dromaeo/cssquery-ext.html rename : testing/talos/talos/page_load_test/dromaeo/cssquery-jquery.html => testing/talos/talos/tests/dromaeo/cssquery-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/cssquery-mootools.html => testing/talos/talos/tests/dromaeo/cssquery-mootools.html rename : testing/talos/talos/page_load_test/dromaeo/cssquery-prototype.html => testing/talos/talos/tests/dromaeo/cssquery-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/cssquery-yui.html => testing/talos/talos/tests/dromaeo/cssquery-yui.html rename : testing/talos/talos/page_load_test/dromaeo/dom-attr.html => testing/talos/talos/tests/dromaeo/dom-attr.html rename : testing/talos/talos/page_load_test/dromaeo/dom-modify.html => testing/talos/talos/tests/dromaeo/dom-modify.html rename : testing/talos/talos/page_load_test/dromaeo/dom-query.html => testing/talos/talos/tests/dromaeo/dom-query.html rename : testing/talos/talos/page_load_test/dromaeo/dom-traverse.html => testing/talos/talos/tests/dromaeo/dom-traverse.html rename : testing/talos/talos/page_load_test/dromaeo/dom.manifest => testing/talos/talos/tests/dromaeo/dom.manifest rename : testing/talos/talos/page_load_test/dromaeo/favicon.ico => testing/talos/talos/tests/dromaeo/favicon.ico rename : testing/talos/talos/page_load_test/dromaeo/favicon.png => testing/talos/talos/tests/dromaeo/favicon.png rename : testing/talos/talos/page_load_test/dromaeo/htmlrunner.js => testing/talos/talos/tests/dromaeo/htmlrunner.js rename : testing/talos/talos/page_load_test/dromaeo/ie.css => testing/talos/talos/tests/dromaeo/ie.css rename : testing/talos/talos/page_load_test/dromaeo/images/bg.png => testing/talos/talos/tests/dromaeo/images/bg.png rename : testing/talos/talos/page_load_test/dromaeo/images/clouds.png => testing/talos/talos/tests/dromaeo/images/clouds.png rename : testing/talos/talos/page_load_test/dromaeo/images/clouds2.png => testing/talos/talos/tests/dromaeo/images/clouds2.png rename : testing/talos/talos/page_load_test/dromaeo/images/comets.png => testing/talos/talos/tests/dromaeo/images/comets.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino1.png => testing/talos/talos/tests/dromaeo/images/dino1.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino2.png => testing/talos/talos/tests/dromaeo/images/dino2.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino3.png => testing/talos/talos/tests/dromaeo/images/dino3.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino4.png => testing/talos/talos/tests/dromaeo/images/dino4.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino5.png => testing/talos/talos/tests/dromaeo/images/dino5.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino6.png => testing/talos/talos/tests/dromaeo/images/dino6.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino7.png => testing/talos/talos/tests/dromaeo/images/dino7.png rename : testing/talos/talos/page_load_test/dromaeo/images/dino8.png => testing/talos/talos/tests/dromaeo/images/dino8.png rename : testing/talos/talos/page_load_test/dromaeo/images/left.png => testing/talos/talos/tests/dromaeo/images/left.png rename : testing/talos/talos/page_load_test/dromaeo/images/logo.png => testing/talos/talos/tests/dromaeo/images/logo.png rename : testing/talos/talos/page_load_test/dromaeo/images/logo2.png => testing/talos/talos/tests/dromaeo/images/logo2.png rename : testing/talos/talos/page_load_test/dromaeo/images/logo3.png => testing/talos/talos/tests/dromaeo/images/logo3.png rename : testing/talos/talos/page_load_test/dromaeo/images/right.png => testing/talos/talos/tests/dromaeo/images/right.png rename : testing/talos/talos/page_load_test/dromaeo/images/top.png => testing/talos/talos/tests/dromaeo/images/top.png rename : testing/talos/talos/page_load_test/dromaeo/images/water.png => testing/talos/talos/tests/dromaeo/images/water.png rename : testing/talos/talos/page_load_test/dromaeo/index.html => testing/talos/talos/tests/dromaeo/index.html rename : testing/talos/talos/page_load_test/dromaeo/jquery.js => testing/talos/talos/tests/dromaeo/jquery.js rename : testing/talos/talos/page_load_test/dromaeo/json.js => testing/talos/talos/tests/dromaeo/json.js rename : testing/talos/talos/page_load_test/dromaeo/lib/dojo.js => testing/talos/talos/tests/dromaeo/lib/dojo.js rename : testing/talos/talos/page_load_test/dromaeo/lib/ext-base.js => testing/talos/talos/tests/dromaeo/lib/ext-base.js rename : testing/talos/talos/page_load_test/dromaeo/lib/ext-core.js => testing/talos/talos/tests/dromaeo/lib/ext-core.js rename : testing/talos/talos/page_load_test/dromaeo/lib/jquery.js => testing/talos/talos/tests/dromaeo/lib/jquery.js rename : testing/talos/talos/page_load_test/dromaeo/lib/mootools.js => testing/talos/talos/tests/dromaeo/lib/mootools.js rename : testing/talos/talos/page_load_test/dromaeo/lib/prototype.js => testing/talos/talos/tests/dromaeo/lib/prototype.js rename : testing/talos/talos/page_load_test/dromaeo/lib/yahoo.js => testing/talos/talos/tests/dromaeo/lib/yahoo.js rename : testing/talos/talos/page_load_test/dromaeo/lib/yui-dom.js => testing/talos/talos/tests/dromaeo/lib/yui-dom.js rename : testing/talos/talos/page_load_test/dromaeo/lib/yui-event.js => testing/talos/talos/tests/dromaeo/lib/yui-event.js rename : testing/talos/talos/page_load_test/dromaeo/lib/yui-selector.js => testing/talos/talos/tests/dromaeo/lib/yui-selector.js rename : testing/talos/talos/page_load_test/dromaeo/pngfix.js => testing/talos/talos/tests/dromaeo/pngfix.js rename : testing/talos/talos/page_load_test/dromaeo/reset.css => testing/talos/talos/tests/dromaeo/reset.css rename : testing/talos/talos/page_load_test/dromaeo/store.php => testing/talos/talos/tests/dromaeo/store.php rename : testing/talos/talos/page_load_test/dromaeo/test-head.html => testing/talos/talos/tests/dromaeo/test-head.html rename : testing/talos/talos/page_load_test/dromaeo/test-head.js => testing/talos/talos/tests/dromaeo/test-head.js rename : testing/talos/talos/page_load_test/dromaeo/test-tail.html => testing/talos/talos/tests/dromaeo/test-tail.html rename : testing/talos/talos/page_load_test/dromaeo/test-tail.js => testing/talos/talos/tests/dromaeo/test-tail.js rename : testing/talos/talos/page_load_test/dromaeo/tests/MANIFEST.json => testing/talos/talos/tests/dromaeo/tests/MANIFEST.json rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-dojo.html => testing/talos/talos/tests/dromaeo/tests/cssquery-dojo.html rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-ext.html => testing/talos/talos/tests/dromaeo/tests/cssquery-ext.html rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-jquery.html => testing/talos/talos/tests/dromaeo/tests/cssquery-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-mootools.html => testing/talos/talos/tests/dromaeo/tests/cssquery-mootools.html rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-prototype.html => testing/talos/talos/tests/dromaeo/tests/cssquery-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/cssquery-yui.html => testing/talos/talos/tests/dromaeo/tests/cssquery-yui.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dom-attr.html => testing/talos/talos/tests/dromaeo/tests/dom-attr.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dom-modify.html => testing/talos/talos/tests/dromaeo/tests/dom-modify.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dom-query.html => testing/talos/talos/tests/dromaeo/tests/dom-query.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dom-traverse.html => testing/talos/talos/tests/dromaeo/tests/dom-traverse.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-3d-cube.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-3d-cube.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-core-eval.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-core-eval.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-object-array.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-object-array.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-object-regexp.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-object-regexp.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-object-string.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-object-string.html rename : testing/talos/talos/page_load_test/dromaeo/tests/dromaeo-string-base64.html => testing/talos/talos/tests/dromaeo/tests/dromaeo-string-base64.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-attr-jquery.html => testing/talos/talos/tests/dromaeo/tests/jslib-attr-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-attr-prototype.html => testing/talos/talos/tests/dromaeo/tests/jslib-attr-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-event-jquery.html => testing/talos/talos/tests/dromaeo/tests/jslib-event-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-event-prototype.html => testing/talos/talos/tests/dromaeo/tests/jslib-event-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-modify-jquery.html => testing/talos/talos/tests/dromaeo/tests/jslib-modify-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-modify-prototype.html => testing/talos/talos/tests/dromaeo/tests/jslib-modify-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-style-jquery.html => testing/talos/talos/tests/dromaeo/tests/jslib-style-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-style-prototype.html => testing/talos/talos/tests/dromaeo/tests/jslib-style-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-traverse-jquery.html => testing/talos/talos/tests/dromaeo/tests/jslib-traverse-jquery.html rename : testing/talos/talos/page_load_test/dromaeo/tests/jslib-traverse-prototype.html => testing/talos/talos/tests/dromaeo/tests/jslib-traverse-prototype.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-3d-morph.html => testing/talos/talos/tests/dromaeo/tests/sunspider-3d-morph.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-3d-raytrace.html => testing/talos/talos/tests/dromaeo/tests/sunspider-3d-raytrace.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-access-binary-trees.html => testing/talos/talos/tests/dromaeo/tests/sunspider-access-binary-trees.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-access-fannkuch.html => testing/talos/talos/tests/dromaeo/tests/sunspider-access-fannkuch.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-access-nbody.html => testing/talos/talos/tests/dromaeo/tests/sunspider-access-nbody.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-access-nsieve.html => testing/talos/talos/tests/dromaeo/tests/sunspider-access-nsieve.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-bitops-3bit-bits-in-byte.html => testing/talos/talos/tests/dromaeo/tests/sunspider-bitops-3bit-bits-in-byte.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-bitops-bits-in-byte.html => testing/talos/talos/tests/dromaeo/tests/sunspider-bitops-bits-in-byte.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-bitops-bitwise-and.html => testing/talos/talos/tests/dromaeo/tests/sunspider-bitops-bitwise-and.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-bitops-nsieve-bits.html => testing/talos/talos/tests/dromaeo/tests/sunspider-bitops-nsieve-bits.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-controlflow-recursive.html => testing/talos/talos/tests/dromaeo/tests/sunspider-controlflow-recursive.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-crypto-aes.html => testing/talos/talos/tests/dromaeo/tests/sunspider-crypto-aes.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-crypto-md5.html => testing/talos/talos/tests/dromaeo/tests/sunspider-crypto-md5.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-crypto-sha1.html => testing/talos/talos/tests/dromaeo/tests/sunspider-crypto-sha1.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-date-format-tofte.html => testing/talos/talos/tests/dromaeo/tests/sunspider-date-format-tofte.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-date-format-xparb.html => testing/talos/talos/tests/dromaeo/tests/sunspider-date-format-xparb.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-math-cordic.html => testing/talos/talos/tests/dromaeo/tests/sunspider-math-cordic.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-math-partial-sums.html => testing/talos/talos/tests/dromaeo/tests/sunspider-math-partial-sums.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-math-spectral-norm.html => testing/talos/talos/tests/dromaeo/tests/sunspider-math-spectral-norm.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-regexp-dna.html => testing/talos/talos/tests/dromaeo/tests/sunspider-regexp-dna.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-string-fasta.html => testing/talos/talos/tests/dromaeo/tests/sunspider-string-fasta.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-string-tagcloud.html => testing/talos/talos/tests/dromaeo/tests/sunspider-string-tagcloud.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-string-unpack-code.html => testing/talos/talos/tests/dromaeo/tests/sunspider-string-unpack-code.html rename : testing/talos/talos/page_load_test/dromaeo/tests/sunspider-string-validate-input.html => testing/talos/talos/tests/dromaeo/tests/sunspider-string-validate-input.html rename : testing/talos/talos/page_load_test/dromaeo/tests/v8-crypto.html => testing/talos/talos/tests/dromaeo/tests/v8-crypto.html rename : testing/talos/talos/page_load_test/dromaeo/tests/v8-deltablue.html => testing/talos/talos/tests/dromaeo/tests/v8-deltablue.html rename : testing/talos/talos/page_load_test/dromaeo/tests/v8-earley-boyer.html => testing/talos/talos/tests/dromaeo/tests/v8-earley-boyer.html rename : testing/talos/talos/page_load_test/dromaeo/tests/v8-raytrace.html => testing/talos/talos/tests/dromaeo/tests/v8-raytrace.html rename : testing/talos/talos/page_load_test/dromaeo/tests/v8-richards.html => testing/talos/talos/tests/dromaeo/tests/v8-richards.html rename : testing/talos/talos/page_load_test/dromaeo/web-style.css => testing/talos/talos/tests/dromaeo/web-style.css rename : testing/talos/talos/page_load_test/dromaeo/webrunner.js => testing/talos/talos/tests/dromaeo/webrunner.js rename : testing/talos/talos/page_load_test/kraken/driver.html => testing/talos/talos/tests/kraken/driver.html rename : testing/talos/talos/page_load_test/kraken/kraken.css => testing/talos/talos/tests/kraken/kraken.css rename : testing/talos/talos/page_load_test/kraken/kraken.manifest => testing/talos/talos/tests/kraken/kraken.manifest rename : testing/talos/talos/page_load_test/kraken/test-contents.js => testing/talos/talos/tests/kraken/test-contents.js rename : testing/talos/talos/page_load_test/kraken/test-prefix.js => testing/talos/talos/tests/kraken/test-prefix.js rename : testing/talos/talos/page_load_test/quit.js => testing/talos/talos/tests/quit.js rename : testing/talos/talos/page_load_test/scroll/drac.htm => testing/talos/talos/tests/scroll/drac.htm rename : testing/talos/talos/page_load_test/scroll/iframe.svg => testing/talos/talos/tests/scroll/iframe.svg rename : testing/talos/talos/page_load_test/scroll/reader.css => testing/talos/talos/tests/scroll/reader.css rename : testing/talos/talos/page_load_test/scroll/reader.htm => testing/talos/talos/tests/scroll/reader.htm rename : testing/talos/talos/page_load_test/scroll/scroll-test.js => testing/talos/talos/tests/scroll/scroll-test.js rename : testing/talos/talos/page_load_test/scroll/scroll.js => testing/talos/talos/tests/scroll/scroll.js rename : testing/talos/talos/page_load_test/scroll/scroll.manifest => testing/talos/talos/tests/scroll/scroll.manifest rename : testing/talos/talos/page_load_test/scroll/strips-single.png => testing/talos/talos/tests/scroll/strips-single.png rename : testing/talos/talos/page_load_test/scroll/strips.png => testing/talos/talos/tests/scroll/strips.png rename : testing/talos/talos/page_load_test/scroll/tiled-downscale.html => testing/talos/talos/tests/scroll/tiled-downscale.html rename : testing/talos/talos/page_load_test/scroll/tiled-fixed-downscale.html => testing/talos/talos/tests/scroll/tiled-fixed-downscale.html rename : testing/talos/talos/page_load_test/scroll/tiled-fixed.html => testing/talos/talos/tests/scroll/tiled-fixed.html rename : testing/talos/talos/page_load_test/scroll/tiled.html => testing/talos/talos/tests/scroll/tiled.html rename : testing/talos/talos/page_load_test/svg_opacity/big-optimizable-group-opacity-2500.svg => testing/talos/talos/tests/svg_opacity/big-optimizable-group-opacity-2500.svg rename : testing/talos/talos/page_load_test/svg_opacity/small-group-opacity-2500.svg => testing/talos/talos/tests/svg_opacity/small-group-opacity-2500.svg rename : testing/talos/talos/page_load_test/svg_opacity/svg_opacity.manifest => testing/talos/talos/tests/svg_opacity/svg_opacity.manifest rename : testing/talos/talos/page_load_test/svgx/composite-scale-opacity.svg => testing/talos/talos/tests/svgx/composite-scale-opacity.svg rename : testing/talos/talos/page_load_test/svgx/composite-scale-rotate-opacity.svg => testing/talos/talos/tests/svgx/composite-scale-rotate-opacity.svg rename : testing/talos/talos/page_load_test/svgx/composite-scale-rotate.svg => testing/talos/talos/tests/svgx/composite-scale-rotate.svg rename : testing/talos/talos/page_load_test/svgx/composite-scale.svg => testing/talos/talos/tests/svgx/composite-scale.svg rename : testing/talos/talos/page_load_test/svgx/gearflowers.svg => testing/talos/talos/tests/svgx/gearflowers.svg rename : testing/talos/talos/page_load_test/svgx/hixie-001.xml => testing/talos/talos/tests/svgx/hixie-001.xml rename : testing/talos/talos/page_load_test/svgx/hixie-002.xml => testing/talos/talos/tests/svgx/hixie-002.xml rename : testing/talos/talos/page_load_test/svgx/hixie-003.xml => testing/talos/talos/tests/svgx/hixie-003.xml rename : testing/talos/talos/page_load_test/svgx/hixie-004.xml => testing/talos/talos/tests/svgx/hixie-004.xml rename : testing/talos/talos/page_load_test/svgx/hixie-005.xml => testing/talos/talos/tests/svgx/hixie-005.xml rename : testing/talos/talos/page_load_test/svgx/hixie-006.xml => testing/talos/talos/tests/svgx/hixie-006.xml rename : testing/talos/talos/page_load_test/svgx/hixie-007.xml => testing/talos/talos/tests/svgx/hixie-007.xml rename : testing/talos/talos/page_load_test/svgx/images/kyoto_1.jpg => testing/talos/talos/tests/svgx/images/kyoto_1.jpg rename : testing/talos/talos/page_load_test/svgx/images/kyoto_2.jpg => testing/talos/talos/tests/svgx/images/kyoto_2.jpg rename : testing/talos/talos/page_load_test/svgx/images/smallcats.gif => testing/talos/talos/tests/svgx/images/smallcats.gif rename : testing/talos/talos/page_load_test/svgx/svgm.manifest => testing/talos/talos/tests/svgx/svgm.manifest rename : testing/talos/talos/page_load_test/svgx/svgx.manifest => testing/talos/talos/tests/svgx/svgx.manifest rename : testing/talos/talos/page_load_test/tabswitch/bootstrap.js => testing/talos/talos/tests/tabswitch/bootstrap.js rename : testing/talos/talos/page_load_test/tabswitch/chrome.manifest => testing/talos/talos/tests/tabswitch/chrome.manifest rename : testing/talos/talos/page_load_test/tabswitch/content/options.xul => testing/talos/talos/tests/tabswitch/content/options.xul rename : testing/talos/talos/page_load_test/tabswitch/content/test.html => testing/talos/talos/tests/tabswitch/content/test.html rename : testing/talos/talos/page_load_test/tabswitch/install.rdf => testing/talos/talos/tests/tabswitch/install.rdf rename : testing/talos/talos/page_load_test/tabswitch/tps.manifest => testing/talos/talos/tests/tabswitch/tps.manifest rename : testing/talos/talos/page_load_test/tart/addon/chrome.manifest => testing/talos/talos/tests/tart/addon/chrome.manifest rename : testing/talos/talos/page_load_test/tart/addon/content/Profiler.js => testing/talos/talos/tests/tart/addon/content/Profiler.js rename : testing/talos/talos/page_load_test/tart/addon/content/blank.icon.html => testing/talos/talos/tests/tart/addon/content/blank.icon.html rename : testing/talos/talos/page_load_test/tart/addon/content/framescript.js => testing/talos/talos/tests/tart/addon/content/framescript.js rename : testing/talos/talos/page_load_test/tart/addon/content/tab-min-width-1px.css => testing/talos/talos/tests/tart/addon/content/tab-min-width-1px.css rename : testing/talos/talos/page_load_test/tart/addon/content/tart.html => testing/talos/talos/tests/tart/addon/content/tart.html rename : testing/talos/talos/page_load_test/tart/addon/content/tart.ico => testing/talos/talos/tests/tart/addon/content/tart.ico rename : testing/talos/talos/page_load_test/tart/addon/content/tart.js => testing/talos/talos/tests/tart/addon/content/tart.js rename : testing/talos/talos/page_load_test/tart/addon/content/tart.overlay.xul => testing/talos/talos/tests/tart/addon/content/tart.overlay.xul rename : testing/talos/talos/page_load_test/tart/addon/install.rdf => testing/talos/talos/tests/tart/addon/install.rdf rename : testing/talos/talos/page_load_test/tart/cart.manifest => testing/talos/talos/tests/tart/cart.manifest rename : testing/talos/talos/page_load_test/tart/tart.manifest => testing/talos/talos/tests/tart/tart.manifest rename : testing/talos/talos/page_load_test/tp5o.html => testing/talos/talos/tests/tp5o.html rename : testing/talos/talos/page_load_test/v8_7/base.js => testing/talos/talos/tests/v8_7/base.js rename : testing/talos/talos/page_load_test/v8_7/crypto.js => testing/talos/talos/tests/v8_7/crypto.js rename : testing/talos/talos/page_load_test/v8_7/deltablue.js => testing/talos/talos/tests/v8_7/deltablue.js rename : testing/talos/talos/page_load_test/v8_7/earley-boyer.js => testing/talos/talos/tests/v8_7/earley-boyer.js rename : testing/talos/talos/page_load_test/v8_7/navier-stokes.js => testing/talos/talos/tests/v8_7/navier-stokes.js rename : testing/talos/talos/page_load_test/v8_7/raytrace.js => testing/talos/talos/tests/v8_7/raytrace.js rename : testing/talos/talos/page_load_test/v8_7/regexp.js => testing/talos/talos/tests/v8_7/regexp.js rename : testing/talos/talos/page_load_test/v8_7/revisions.html => testing/talos/talos/tests/v8_7/revisions.html rename : testing/talos/talos/page_load_test/v8_7/richards.js => testing/talos/talos/tests/v8_7/richards.js rename : testing/talos/talos/page_load_test/v8_7/run.html => testing/talos/talos/tests/v8_7/run.html rename : testing/talos/talos/page_load_test/v8_7/splay.js => testing/talos/talos/tests/v8_7/splay.js rename : testing/talos/talos/page_load_test/v8_7/style.css => testing/talos/talos/tests/v8_7/style.css rename : testing/talos/talos/page_load_test/v8_7/v8-logo.png => testing/talos/talos/tests/v8_7/v8-logo.png rename : testing/talos/talos/page_load_test/v8_7/v8.manifest => testing/talos/talos/tests/v8_7/v8.manifest rename : testing/talos/talos/page_load_test/webgl/benchmarks/terrain/grass.jpeg => testing/talos/talos/tests/webgl/benchmarks/terrain/grass.jpeg rename : testing/talos/talos/page_load_test/webgl/benchmarks/terrain/perftest.html => testing/talos/talos/tests/webgl/benchmarks/terrain/perftest.html rename : testing/talos/talos/page_load_test/webgl/glterrain.manifest => testing/talos/talos/tests/webgl/glterrain.manifest extra : commitid : 1haa389fmD2 extra : rebase_source : 38183bab6d10e6759f8734c5f7a143f2fba75d7b
2015-09-25 23:39:03 +03:00
'config': {},
'initial_config_file': self.config_file_path,
}
def write_config(self):
try:
config_file = open(self.config_file_path, 'wb')
config_file.write(json.dumps(self.config))
except IOError as e:
err_str = "Error writing to Talos Mozharness config file {0}:{1}"
print(err_str.format(self.config_file_path, str(e)))
raise e
def run_mozharness(self):
sys.path.insert(0, self.mozharness_dir)
from mozharness.mozilla.testing.talos import Talos
talos_mh = Talos(config=self.args['config'],
initial_config_file=self.args['initial_config_file'])
return talos_mh.run()
def create_parser():
sys.path.insert(0, HERE) # allow to import the talos package
from talos.cmdline import create_parser
return create_parser(mach_interface=True)
@CommandProvider
class MachCommands(MachCommandBase):
@Command('talos-test', category='testing',
description='Run talos tests (performance testing).',
parser=create_parser)
def run_talos_test(self, **kwargs):
talos = self._spawn(TalosRunner)
try:
return talos.run_test(sys.argv[2:])
except Exception as e:
print(str(e))
return 1