Merge branch 'scheduled-tests' into 'master'

Run bridge tests in scheduled nightly tests (and fix merge pipelines)

See merge request briar/briar!1431
This commit is contained in:
akwizgran
2021-04-21 13:55:48 +00:00
3 changed files with 21 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ public class PromoVideoTest extends ScreenshotTest {
// It takes a long time for SetupActivity to start after the splash,
// (because it is shown longer for videos), so increase timeout.
if (!isFilming) waitFor(SetupActivity.class, 20_000);
if (!isFilming) waitFor(SetupActivity.class, 30_000);
// Note: We use waiting code only when not filming,
// to make the test reliable for CI. Otherwise, we used fixed

View File

@@ -3,6 +3,8 @@ package org.briarproject.briar.android;
import android.app.Activity;
import android.util.Log;
import com.jraska.falcon.Falcon.UnableToTakeScreenshotException;
import org.briarproject.bramble.api.connection.ConnectionRegistry;
import org.briarproject.bramble.api.system.Clock;
import org.briarproject.briar.api.test.TestDataCreator;
@@ -34,6 +36,8 @@ public abstract class ScreenshotTest extends UiTest {
protected void screenshot(String name, Activity activity) {
try {
Screengrab.screenshot(name, new FalconScreenshotStrategy(activity));
} catch (UnableToTakeScreenshotException e) {
Log.e("Screengrab", "Error taking screenshot", e);
} catch (RuntimeException e) {
if (e.getMessage() == null ||
!e.getMessage().equals("Unable to capture screenshot."))