mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 23:40:26 -04:00
Fixed: Ci is continuously failing.
* Modified the `instrumentation.sh` script to delete the app if already installed in the device before running the test cases.
This commit is contained in:
parent
6656d94115
commit
ff9c82ebb8
@ -13,8 +13,8 @@ is_app_installed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if is_app_installed; then
|
if is_app_installed; then
|
||||||
# Clear application data to properly run the test cases.
|
# Delete the application to properly run the test cases.
|
||||||
adb shell pm clear "${PACKAGE_NAME}"
|
adb uninstall "${PACKAGE_NAME}"
|
||||||
fi
|
fi
|
||||||
retry=0
|
retry=0
|
||||||
while [ $retry -le 3 ]; do
|
while [ $retry -le 3 ]; do
|
||||||
@ -31,8 +31,8 @@ while [ $retry -le 3 ]; do
|
|||||||
adb logcat *:E -v color &
|
adb logcat *:E -v color &
|
||||||
|
|
||||||
if is_app_installed; then
|
if is_app_installed; then
|
||||||
# Clear application data to properly run the test cases.
|
# Delete the application to properly run the test cases.
|
||||||
adb shell pm clear "${PACKAGE_NAME}"
|
adb uninstall "${PACKAGE_NAME}"
|
||||||
fi
|
fi
|
||||||
./gradlew clean
|
./gradlew clean
|
||||||
retry=$(( retry + 1 ))
|
retry=$(( retry + 1 ))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user