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

Commit 1dda1196 authored by Chen Bai's avatar Chen Bai
Browse files

DCL: disable DynamicCodeLoggerIntegrationTests for watch

- DynamicCodeLoggingService doesn't run on watch, therefore disable its
  related tests.

BUG: 253517106
Change-Id: I07cc3d7e7f58b01c0a8bd1a30fbf1e66a78ce7a2
(cherry picked from commit 9a18b568e3bf69f855cb231b488767967f904ea8)
(cherry picked from commit 1339078c8e590c29762560c65caf502e648f0a6f)
parent ccb1e8f6
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -19,8 +19,11 @@ package com.android.server.pm.dex;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth.assertWithMessage;

import static org.junit.Assume.assumeFalse;

import android.app.UiAutomation;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.ParcelFileDescriptor;
import android.os.SystemClock;
@@ -96,7 +99,12 @@ public final class DynamicCodeLoggerIntegrationTests {
    }

    @Before
    public void primeEventLog() {
    public void setup() {
        assumeFalse(sContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH));
        primeEventLog();
    }

    private void primeEventLog() {
        // Force a round trip to logd to make sure everything is up to date.
        // Without this the first test passes and others don't - we don't see new events in the
        // log. The exact reason is unclear.