Skip to content

Commit

Permalink
Merge pull request mozilla#19 from gregarndt/bug_1098035
Browse files Browse the repository at this point in the history
Bug 1098035 - test task file per build type r=lightsofapollo
  • Loading branch information
gregarndt committed Nov 13, 2014
2 parents 0c25ffc + 59640d8 commit 7a57ab4
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 51 deletions.
14 changes: 9 additions & 5 deletions testing/taskcluster/job_flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ tests:
# - builds/b2g_desktop.yml
mochitests:
allowed_build_tasks:
- tasks/builds/b2g_desktop.yml
- tasks/builds/b2g_desktop_debug.yml
- tasks/builds/mulet_linux.yml
task: tasks/tests/b2g_mochitest.yml
chunks: 5
tasks/builds/b2g_desktop.yml:
task: tasks/tests/b2g_mochitest.yml
chunks: 5
tasks/builds/b2g_desktop_debug.yml:
task: tasks/tests/b2g_mochitest.yml
chunks: 5
tasks/builds/mulet_linux.yml:
task: tasks/tests/mulet_mochitests.yml
chunks: 5
1 change: 1 addition & 0 deletions testing/taskcluster/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def create_graph(self, revision="", message="", repository="", owner="",
)

for test in build['dependents']:
test = test['allowed_build_tasks'][build['task']]
test_parameters = copy.copy(build_parameters)
test_parameters['build_url'] = build_url
test_parameters['tests_url'] = tests_url
Expand Down
41 changes: 41 additions & 0 deletions testing/taskcluster/tasks/tests/mulet_mochitests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
task:
created: '{{now}}'
deadline: '{{#from_now}}24 hours{{/from_now}}'
metadata:
source: http://todo.com/soon
owner: {{owner}}
name: Mulet Mochitests {{chunk}}
description: Mulet Mochi test run {{chunk}}

workerType: b2gtest
provisionerId: aws-provisioner

payload:

image: '{{#docker_image}}tester{{/docker_image}}'
maxRunTime: 3600

command:
- entrypoint # entrypoint ensures we are running in xvfb
- >
python ./mozharness/scripts/desktop_unittest.py
--no-read-buildbot-config
--config-file ./mozharness/configs/unittests/linux_unittest.py
--config-file ./mozharness_tmp/mulet_suite_options_config.py
--installer-url {{build_url}}
--test-url {{tests_url}}
--download-symbols ondemand
--mochitest-suite plain-chunked
--total-chunk={{total_chunks}}
--this-chunk={{chunk}}
artifacts:
'public/build':
type: directory
path: '/home/worker/artifacts/'
expires: '{{#from_now}}1 year{{/from_now}}'

extra:
treeherder:
symbol: M

Loading

0 comments on commit 7a57ab4

Please sign in to comment.