b2g_desktop_unittest module

class b2g_desktop_unittest.B2GDesktopTest(options=[], require_config_file=False)[source]

Bases: mozharness.mozilla.blob_upload.BlobUploadMixin, mozharness.mozilla.testing.testbase.TestingMixin, mozharness.base.vcs.vcsbase.MercurialScript

config_options = [[['--type'], {'action': 'store', 'dest': 'test_type', 'default': 'browser', 'help': 'The type of tests to run'}], [['--browser-arg'], {'action': 'store', 'dest': 'browser_arg', 'default': None, 'help': 'Optional command-line argument to pass to the browser'}], [['--test-manifest'], {'action': 'store', 'dest': 'test_manifest', 'default': None, 'help': 'Path to test manifest to run'}], [['--test-suite'], {'action': 'store', 'dest': 'test_suite', 'type': 'choice', 'help': 'Which test suite to run', 'choices': ('mochitest', 'reftest')}], [['--total-chunks'], {'action': 'store', 'dest': 'total_chunks', 'help': 'Number of total chunks'}], [['--this-chunk'], {'action': 'store', 'dest': 'this_chunk', 'help': 'Number of this chunk'}], [['--installer-url'], {'action': 'store', 'dest': 'installer_url', 'default': None, 'help': 'URL to the installer to install'}], [['--installer-path'], {'action': 'store', 'dest': 'installer_path', 'default': None, 'help': 'Path to the installer to install. This is set automatically if run with --download-and-extract.'}], [['--binary-path'], {'action': 'store', 'dest': 'binary_path', 'default': None, 'help': 'Path to installed binary. This is set automatically if run with --install.'}], [['--exe-suffix'], {'action': 'store', 'dest': 'exe_suffix', 'default': None, 'help': 'Executable suffix for binaries on this platform'}], [['--test-url'], {'action': 'store', 'dest': 'test_url', 'default': None, 'help': 'URL to the zip file containing the actual tests'}], [['--test-packages-url'], {'action': 'store', 'dest': 'test_packages_url', 'default': None, 'help': 'URL to a json file describing which tests archives to download'}], [['--jsshell-url'], {'action': 'store', 'dest': 'jsshell_url', 'default': None, 'help': 'URL to the jsshell to install'}], [['--download-symbols'], {'action': 'store', 'dest': 'download_symbols', 'type': 'choice', 'help': 'Download and extract crash reporter symbols.', 'choices': ['ondemand', 'true']}], [['--venv-path', '--virtualenv-path'], {'action': 'store', 'dest': 'virtualenv_path', 'default': 'venv', 'help': 'Specify the path to the virtualenv top level directory'}], [['--virtualenv'], {'action': 'store', 'dest': 'virtualenv', 'help': 'Specify the virtualenv executable to use'}], [['--find-links'], {'action': 'extend', 'dest': 'find_links', 'help': 'URL to look for packages at'}], [['--pip-index'], {'action': 'store_true', 'default': True, 'dest': 'pip_index', 'help': 'Use pip indexes (default)'}], [['--no-pip-index'], {'action': 'store_false', 'dest': 'pip_index', 'help': "Don't use pip indexes"}], [['--blob-upload-branch'], {'dest': 'blob_upload_branch', 'help': "Branch for blob server's metadata"}], [['--blob-upload-server'], {'dest': 'blob_upload_servers', 'action': 'extend', 'help': "Blob servers's location"}]]
download_and_extract()[source]
error_list = [{'substr': 'FAILED (errors=', 'level': 'error'}, {'substr': 'Could not successfully complete transport of message to Gecko, socket closed', 'level': 'error'}, {'substr': 'Could not communicate with Marionette server. Is the Gecko process still running', 'level': 'error'}, {'substr': 'Connection to Marionette server is lost. Check gecko', 'level': 'error'}, {'substr': 'Timeout waiting for marionette on port', 'level': 'error'}, {'regex': <_sre.SRE_Pattern object at 0x3363380>, 'level': 'error'}]
preflight_run_tests()[source]
query_abs_dirs()[source]
run_tests()[source]

Run the tests

test_suites = ('mochitest', 'reftest')