-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfenix.sh
30 lines (26 loc) · 1004 Bytes
/
fenix.sh
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
#!/bin/bash
bash ./clear_apps.sh
if [[ -n $ANDROID_SERIAL ]] ; then
DEVICE_SERIAL_ARGS="--firefox.android.deviceSerial=$ANDROID_SERIAL --chrome.android.deviceSerial=$ANDROID_SERIAL"
else
DEVICE_SERIAL_ARGS=
fi
# N.B.: yargs doesn't parse `--firefox.android.intentArgument --ez`
# properly, so always use `=--ez`!
$BROWSERTIME_BIN \
--android \
--skipHar \
--firefox.geckodriverPath="$GECKODRIVER_PATH" \
--firefox.android.package "$PACKAGE" \
--firefox.android.activity "org.mozilla.fenix.IntentReceiverActivity" \
--firefox.android.intentArgument=-a \
--firefox.android.intentArgument=android.intent.action.VIEW \
--firefox.android.intentArgument=--ez \
--firefox.android.intentArgument=performancetest \
--firefox.android.intentArgument=true \
--firefox.android.intentArgument=-d \
--firefox.android.intentArgument="$LAUNCH_URL" \
--browser firefox \
$DEVICE_SERIAL_ARGS \
"$@"
adb -s $ANDROID_SERIAL shell am force-stop $PACKAGE