fune/taskcluster/scripts/iris/run-iris-linux.sh
Kimberly Sereduck 87070274c9 Bug 1603808 [Iris Firefox] - Add a keyboard shortcut to fluxbox on Linux workers r=ashughes
Some Iris Firefox tests have been failing due to the keypresses not being registered, thus failing to maximize the browser window.

Registered a new keyboard shortcut in a config file: ~/.fluxbox/keys

Differential Revision: https://phabricator.services.mozilla.com/D57142

--HG--
extra : moz-landing-system : lando
2019-12-13 21:17:32 +00:00

59 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
# Debian10 linux bootstrap
set -x +e -v
# Set Iris code root, required by moziris
export IRIS_CODE_ROOT=$MOZ_FETCHES_DIR/iris_firefox
# Set up a virtual display since we don't have an xdisplay
. $HOME/scripts/xvfb.sh
start_xvfb '1920x1080x24+32' 0
# Re-set `+e` after start_xvfb changes it
set +e
# configure fluxbox
mkdir /builds/worker/.fluxbox/
echo "exec startfluxbox" >> .xinitrc
# required for X server to start correctly
touch ~/.Xauthority
# start fluxbox
fluxbox &
killall fluxbox
echo "Control Mod4 Up :MaximizeWindow" >> /builds/worker/.fluxbox/keys
fluxbox reconfigure &
# Install iris's pipenv
cd $MOZ_FETCHES_DIR/iris_firefox
PIPENV_MAX_RETRIES="5" pipenv install
pip_status=$?
# If pipenv installation fails for any reason, make another attempt.
if [ $pip_status -eq 0 ]
then
echo "Pipenv installed correctly, proceeding to Iris test run:"
else
echo "Pipenv failed to install, attempting again:"
pipenv lock --clear # This purges any partially/incorrectly generated lock files
pipenv install
fi
# Handle the nightly smoketest suite differently
[ "$CURRENT_TEST_DIR" != "nightly" ] && irisstring="firefox -t $CURRENT_TEST_DIR" || irisstring="$CURRENT_TEST_DIR"
echo "$irisstring"
# Actually run the iris tests
pipenv run iris $irisstring -w ../../iris_runs -n --treeherder -f ../../fetches/firefox/firefox -y
status=$?
# Zip up the test run output
cd ../..
zip -r runs.zip iris_runs/runs
# prevent timeout of the task
killall fluxbox
# Exit with iris's exit code so treeherder knows if tests failed
exit $status