Bug 1821117 [wpt PR 38888] - Expose desired{Execution|Render}Start in LoAF+ScriptTimi...
[gecko.git] / taskcluster / scripts / misc / repack-android-avd-linux.sh
blobf36fda905d5b5edd9106e74d614f00ac7f254303
1 #!/bin/bash
2 set -x -e -v
4 # Initialize XVFB for the AVD
5 . /builds/worker/scripts/xvfb.sh
7 cleanup() {
8 local rv=$?
9 cleanup_xvfb
10 exit $rv
12 trap cleanup EXIT INT
14 start_xvfb '1024x768x24' 2
16 # This script is for fetching and repacking the Android SDK (for
17 # Linux), the tools required to produce Android packages.
19 UPLOAD_DIR=/builds/worker/artifacts/
20 AVD_JSON_CONFIG="$1"
22 mkdir -p $HOME/artifacts $UPLOAD_DIR
24 # Populate /builds/worker/.mozbuild/android-device
25 cd $GECKO_PATH
26 ./mach python python/mozboot/mozboot/android.py --artifact-mode --prewarm-avd --avd-manifest="$AVD_JSON_CONFIG" --no-interactive --list-packages
28 tar cavf $UPLOAD_DIR/android-avd-linux.tar.zst -C /builds/worker/.mozbuild android-device
30 ls -al $UPLOAD_DIR