From 306786c9e544d5b5e40e8bf668277e23cfb053d2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 26 Apr 2019 00:00:29 +0200 Subject: [PATCH] gitlab-ci: run tests three times before marking whole job as failed There are soo many of these: org.fdroid.fdroid.net.HttpDownloaderTest > downloadThenCancel[avd27(AVD) - 8.1.0] FAILED Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Process crashed.''. Check device logcat for details --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e19b2e8b..bd30dae2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,7 +114,10 @@ errorprone: - adb devices - adb shell input keyevent 82 & - test $AVD_SDK -ge 25 || export FLAG=-Pandroid.testInstrumentationRunnerArguments.notAnnotation=android.support.test.filters.LargeTest - - ./gradlew connectedFullDebugAndroidTest $FLAG || (adb -e logcat -d > logcat.txt; exit 1) + - ./gradlew connectedFullDebugAndroidTest $FLAG + || ./gradlew connectedFullDebugAndroidTest $FLAG + || ./gradlew connectedFullDebugAndroidTest $FLAG + || (adb -e logcat -d > logcat.txt; exit 1) connected 22 default armeabi-v7a: retry: 1