Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6de48e7 authored by Mark Harman's avatar Mark Harman
Browse files

Don't run testTakeVideoTimeLapse on emulator.

parent 36d8cd55
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -7357,7 +7357,6 @@ public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActiv
    }
    }
    /** Take video with timelapse mode.
    /** Take video with timelapse mode.
     *  Fails on Android emulator (at least for Android 7.1 on VirtualScene camera).
     *  Fails on Pixel 6 Pro with old camera API.
     *  Fails on Pixel 6 Pro with old camera API.
     */
     */
    public void testTakeVideoTimeLapse() throws InterruptedException {
    public void testTakeVideoTimeLapse() throws InterruptedException {
@@ -7365,6 +7364,11 @@ public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActiv
        setToDefault();
        setToDefault();
        if( TestUtils.isEmulator() ) {
            // fails on Android emulator (at least for Android 7.1 on VirtualScene camera) - and can also leave camera in a state that can't be opened for subsequent tests
            return;
        }
        List<Float> supported_capture_rates = mActivity.getApplicationInterface().getSupportedVideoCaptureRates();
        List<Float> supported_capture_rates = mActivity.getApplicationInterface().getSupportedVideoCaptureRates();
        if( supported_capture_rates.size() <= 1 ) {
        if( supported_capture_rates.size() <= 1 ) {
            Log.d(TAG, "timelapse not supported");
            Log.d(TAG, "timelapse not supported");