Skip to content
Snippets Groups Projects
Commit 371e2f72 authored by Nick Alexander's avatar Nick Alexander
Browse files

Bug 1396098 - part 0a - only source xvfb.sh if we need xvfb; r=glandium

No sense doing unnecessary work.
parent 177dd95e
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,6 @@ set -x -e
echo "running as" $(id)
. /builds/worker/scripts/xvfb.sh
####
# Taskcluster friendly wrapper for performing fx desktop builds via mozharness.
####
......@@ -59,15 +57,17 @@ fi
if [[ -z ${MOZHARNESS_SCRIPT} ]]; then fail "MOZHARNESS_SCRIPT is not set"; fi
if [[ -z ${MOZHARNESS_CONFIG} ]]; then fail "MOZHARNESS_CONFIG is not set"; fi
cleanup() {
local rv=$?
cleanup_xvfb
exit $rv
}
trap cleanup EXIT INT
# run XVfb in the background, if necessary
if $NEED_XVFB; then
. /builds/worker/scripts/xvfb.sh
cleanup() {
local rv=$?
cleanup_xvfb
exit $rv
}
trap cleanup EXIT INT
start_xvfb '1024x768x24' 2
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment