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

Commit 82b3a4dd authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Don't fail the tests if per-freq cpu times are not available.

Test: N/A
Change-Id: I7c6c6aef7ea9ab431fb8b2c7f04b49299be73e9b
parent 3e585ecb
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -104,7 +104,9 @@ public class BstatsCpuTimesValidationTest {

    @Test
    public void testCpuFreqTimes() throws Exception {
        assumeTrue(sCpuFreqTimesAvailable);
        if (!sCpuFreqTimesAvailable) {
            return;
        }

        batteryOnScreenOn();
        forceStop();
@@ -126,7 +128,9 @@ public class BstatsCpuTimesValidationTest {

    @Test
    public void testCpuFreqTimes_screenOff() throws Exception {
        assumeTrue(sCpuFreqTimesAvailable);
        if (!sCpuFreqTimesAvailable) {
            return;
        }

        batteryOnScreenOff();
        forceStop();
@@ -154,7 +158,9 @@ public class BstatsCpuTimesValidationTest {

    @Test
    public void testCpuFreqTimes_isolatedProcess() throws Exception {
        assumeTrue(sCpuFreqTimesAvailable);
        if (!sCpuFreqTimesAvailable) {
            return;
        }

        batteryOnScreenOn();
        forceStop();