зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1284874 - Add marionette test-suite to android_emulator_unittest.py; r=gbrown
MozReview-Commit-ID: 41TtPAHGWBg --HG-- extra : rebase_source : ebabeca4baa032e96baf2574f8e21746a77f68a6
This commit is contained in:
Родитель
115ed9e3f2
Коммит
719af5e998
|
@ -4,6 +4,8 @@ config = {
|
|||
"buildbot_json_path": "buildprops.json",
|
||||
"hostutils_manifest_path": "testing/config/tooltool-manifests/linux64/hostutils.manifest",
|
||||
"robocop_package_name": "org.mozilla.roboexample.test",
|
||||
"marionette_address": "localhost:2828",
|
||||
"marionette_test_manifest": "unit-tests.ini",
|
||||
"tooltool_manifest_path": "testing/config/tooltool-manifests/androidarm_4_3/releng.manifest",
|
||||
"tooltool_cache": "/builds/tooltool_cache",
|
||||
"avds_dir": "/home/cltbld/.android",
|
||||
|
@ -355,6 +357,23 @@ config = {
|
|||
".",
|
||||
],
|
||||
},
|
||||
"marionette": {
|
||||
"run_filename": os.path.join("marionette","runtests.py"),
|
||||
"testsdir": "marionette",
|
||||
"options": [
|
||||
"--emulator",
|
||||
"--app=fennec",
|
||||
"--package=%(app)s",
|
||||
"--address=%(address)s",
|
||||
"%(test_manifest)s",
|
||||
"--disable-e10s",
|
||||
"--gecko-log=%(gecko_log)s",
|
||||
"--log-raw=%(raw_log_file)s",
|
||||
"--log-errorsummary=%(error_summary_file)s",
|
||||
"--symbols-path=%(symbols_path)s",
|
||||
"--startup-timeout=300",
|
||||
],
|
||||
},
|
||||
|
||||
}, # end suite_definitions
|
||||
"download_minidump_stackwalk": True,
|
||||
|
|
|
@ -154,6 +154,11 @@ class AndroidEmulatorTest(BlobUploadMixin, TestingMixin, EmulatorMixin, VCSMixin
|
|||
abs_dirs['abs_work_dir'], 'emulator')
|
||||
dirs['abs_mochitest_dir'] = os.path.join(
|
||||
dirs['abs_test_install_dir'], 'mochitest')
|
||||
dirs['abs_marionette_dir'] = os.path.join(
|
||||
dirs['abs_test_install_dir'], 'marionette', 'marionette')
|
||||
dirs['abs_marionette_tests_dir'] = os.path.join(
|
||||
dirs['abs_test_install_dir'], 'marionette', 'tests', 'testing',
|
||||
'marionette', 'harness', 'marionette', 'tests')
|
||||
dirs['abs_avds_dir'] = self.config.get("avds_dir", "/home/cltbld/.android")
|
||||
|
||||
for key in dirs.keys():
|
||||
|
@ -171,6 +176,9 @@ class AndroidEmulatorTest(BlobUploadMixin, TestingMixin, EmulatorMixin, VCSMixin
|
|||
requirements = os.path.join(dirs['abs_mochitest_dir'],
|
||||
'websocketprocessbridge',
|
||||
'websocketprocessbridge_requirements.txt')
|
||||
elif self.test_suite == 'marionette':
|
||||
requirements = os.path.join(dirs['abs_test_install_dir'],
|
||||
'config', 'marionette_requirements.txt')
|
||||
|
||||
self.register_virtualenv_module(requirements=[requirements],
|
||||
two_pass=True)
|
||||
|
@ -459,6 +467,13 @@ class AndroidEmulatorTest(BlobUploadMixin, TestingMixin, EmulatorMixin, VCSMixin
|
|||
'raw_log_file': raw_log_file,
|
||||
'error_summary_file': error_summary_file,
|
||||
'dm_trans': c['device_manager'],
|
||||
# marionette options
|
||||
'address': c.get('marionette_address'),
|
||||
'gecko_log': os.path.join(dirs["abs_blob_upload_dir"], 'gecko.log'),
|
||||
'test_manifest': os.path.join(
|
||||
dirs['abs_marionette_tests_dir'],
|
||||
self.config.get('marionette_test_manifest', '')
|
||||
),
|
||||
}
|
||||
for option in self.config["suite_definitions"][self.test_suite]["options"]:
|
||||
opt = option.split('=')[0]
|
||||
|
|
Загрузка…
Ссылка в новой задаче