Bug 1163057 - Allow loopback devices to be used within tasks. r=lightsofapollo

This commit is contained in:
Gregory Arndt 2015-05-11 08:15:50 -05:00
parent eca369ad91
commit bf294fee38
6 changed files with 14 additions and 12 deletions

View File

@ -12,17 +12,20 @@ ADD https://s3-us-west-2.amazonaws.com/test-caching/packages/linux64-
ADD https://raw.githubusercontent.com/taskcluster/buildbot-step/master/buildbot_step /home/worker/bin/buildbot_step
COPY tc-vcs-config.yml /etc/taskcluster-vcs.yml
# Run test setup script
RUN chmod u+x /home/worker/bin/buildbot_step
RUN chmod u+x /usr/local/bin/linux64-minidump_stackwalk
RUN apt-get install -y python-pip && pip install virtualenv;
RUN mkdir Documents; mkdir Pictures; mkdir Music; mkdir Videos; mkdir artifacts
RUN chown -R worker:worker /home/worker/* /home/worker/.*
RUN npm install -g taskcluster-vcs@2.3.4
RUN rm -Rf .cache && mkdir -p .cache
ENV PATH $PATH:/home/worker/bin
# Remove once running under 'worker' user. This is necessary for pulseaudio to start
# XXX: change this back to worker:worker once permissions issues are resolved
RUN chown -R root:root /home/worker
# TODO Re-enable worker when bug 1093833 lands
#USER worker

View File

@ -1 +1 @@
0.2.14
0.2.15

View File

@ -10,9 +10,10 @@ test $MOZHARNESS_REV # mozharness revision
# XXX: Note that all tests could be faster at smaller bit depth
Xvfb :0 -nolisten tcp -screen 0 1600x1200x24 2>/dev/null &
export DISPLAY=:0
pulseaudio --start
# First check if the mozharness directory is available. This is intended to be
# used locally in development to test mozharness changes:
#

View File

@ -1,6 +0,0 @@
config = {
# Override buildbot specific exes for python and virtualenv
"exes": {},
# Use taskcluster specified config until Bug 1099057 lands
"in_tree_config": "config/mozharness/taskcluster_linux_config.py"
}

View File

@ -17,8 +17,14 @@ task:
- 'queue:create-task:aws-provisioner/test-c4-2xlarge'
- 'docker-worker:cache:tc-vcs'
- 'docker-worker:cache:linux-cache'
- 'docker-worker:capability:device:loopbackVideo'
- 'docker-worker:capability:device:loopbackAudio'
payload:
capabilities:
devices:
loopbackVideo: true
loopbackAudio: true
image: '{{#docker_image}}tester{{/docker_image}}'
maxRunTime: 3600
cache:

View File

@ -5,7 +5,6 @@ task:
metadata:
name: '[TC] Mulet Mochitests ( {{chunk}} )'
description: Mulet Mochitest run {{chunk}}
payload:
command:
- entrypoint # entrypoint ensures we are running in xvfb
@ -13,7 +12,6 @@ task:
python ./mozharness/scripts/desktop_unittest.py
--no-read-buildbot-config
--config-file ./mozharness/configs/unittests/linux_unittest.py
--config-file ./mozharness_configs/linux_mulet_config.py
--config-file ./mozharness_configs/remove_executables.py
--installer-url {{build_url}}
--test-url {{tests_url}}