blob: 7b9a30286f0e03d858b7a4f50bf9c8721d651a48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/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
|