Skip to content

Commit 85f1181

Browse files
authored
Add network profile
1 parent c16bb42 commit 85f1181

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/firebase_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ while [[ $# -gt 1 ]]; do
2727
ORIENTATIONS="$2"
2828
shift # past argument
2929
;;
30+
-n|--network-profile)
31+
NETWORK_PROFILE="$2"
32+
shift # past argument
33+
;;
3034
-r|--apk-release-path)
3135
PROD_APK_PATH="$2"
3236
shift # past argument
@@ -45,6 +49,7 @@ SDKS="${SDKS-"23"}"
4549
LOCALES="${LOCALES-"en"}"
4650
ORIENTATIONS="${ORIENTATIONS-"portrait"}"
4751
PROD_APK_PATH="${PROD_APK_PATH-"app-prod-release.apk"}"
52+
NETWORK_PROFILE="${NETWORK_PROFILE-"LTE"}"
4853
TEST_APK_PATH="${TEST_APK_PATH-"app-prod-release-androidTest.apk"}"
4954

5055
echo "Authenticating service account in google cloud..."
@@ -59,6 +64,7 @@ gcloud config set project ${PROJECT}
5964
echo "Testing project with the following configurations:"
6065
echo "Devices: [${DEVICES}]"
6166
echo "SDK's: [${SDKS}]"
67+
echo "Network profile: [${NETWORK_PROFILE}]"
6268
echo "Locales: [${LOCALES}]"
6369
echo "Orientations: [${ORIENTATIONS}]"
6470
echo ""
@@ -69,5 +75,6 @@ gcloud firebase test android run \
6975
--test ${TEST_APK_PATH} \
7076
--device-ids ${DEVICES} \
7177
--os-version-ids ${SDKS} \
78+
--network-profile ${NETWORK_PROFILE} \
7279
--locales ${LOCALES} \
7380
--orientations ${ORIENTATIONS}

0 commit comments

Comments
 (0)