Bug 1228416: send gnome-session output to an artifact; r=armenzg
--- a/testing/taskcluster/scripts/tester/test-linux.sh
+++ b/testing/taskcluster/scripts/tester/test-linux.sh
@@ -22,16 +22,18 @@ echo "running as" $(id)
set -v
cd $WORKSPACE
# test required parameters are supplied
if [[ -z ${MOZHARNESS_URL} ]]; then exit 1; fi
if [[ -z ${MOZHARNESS_SCRIPT} ]]; then exit 1; fi
if [[ -z ${MOZHARNESS_CONFIG} ]]; then exit 1; fi
+mkdir -p ~/artifacts
+
cleanup() {
if [ -n "$xvfb_pid" ]; then
kill $xvfb_pid || true
fi
}
trap cleanup EXIT INT
# Unzip the mozharness ZIP file created by the build task
@@ -89,17 +91,17 @@ Exec=touch $semaphore
Hidden=false
X-GNOME-Autostart-enabled=true
Name=Startup Complete
Comment=Notify test-linux.sh that GNOME session startup is complete
StartupNotify=false
Terminal=false
Type=Application
EOF
- gnome-session &
+ gnome-session > ~/artifacts/public/gnome-session.log 2>&1 &
while [ ! -f $semaphore ]; do
sleep 1
done
fi
# support multiple, space delimited, config files
config_cmds=""
for cfg in $MOZHARNESS_CONFIG; do
--- a/testing/taskcluster/tasks/tests/fx_test_base.yml
+++ b/testing/taskcluster/tasks/tests/fx_test_base.yml
@@ -5,17 +5,17 @@ task:
payload:
image: '{{#docker_image}}desktop-test{{/docker_image}}'
env:
NEED_WINDOW_MANAGER: true
NEED_PULSEAUDIO: true
GECKO_HEAD_REPOSITORY: '{{{head_repository}}}'
GECKO_HEAD_REV: '{{{head_rev}}}'
artifacts:
- 'public/build':
+ 'public/test':
type: directory
path: '/home/worker/artifacts/'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
treeherder:
tier: 2
treeherderEnv: