From 8de378a9c9a082848b867ea20d250b819a984027 Mon Sep 17 00:00:00 2001 From: Jay Aliomer Date: Wed, 14 Sep 2022 17:10:06 +0000 Subject: [PATCH] Fix the host golden path asset dir config Fixes: 246785914 Test: run screenshot tests Change-Id: I113c811b5073abde777c027ed60f0daec5860140 --- .../testing/screenshot/SystemUIGoldenImagePathManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/screenshot/src/com/android/systemui/testing/screenshot/SystemUIGoldenImagePathManager.kt b/packages/SystemUI/screenshot/src/com/android/systemui/testing/screenshot/SystemUIGoldenImagePathManager.kt index cbab0a75061e2..fafc7744f439c 100644 --- a/packages/SystemUI/screenshot/src/com/android/systemui/testing/screenshot/SystemUIGoldenImagePathManager.kt +++ b/packages/SystemUI/screenshot/src/com/android/systemui/testing/screenshot/SystemUIGoldenImagePathManager.kt @@ -23,9 +23,11 @@ import platform.test.screenshot.PathConfig /** A [GoldenImagePathManager] that should be used for all SystemUI screenshot tests. */ class SystemUIGoldenImagePathManager( pathConfig: PathConfig, + override val assetsPathRelativeToRepo: String = "tests/screenshot/assets" ) : GoldenImagePathManager( appContext = InstrumentationRegistry.getInstrumentation().context, + assetsPathRelativeToRepo = assetsPathRelativeToRepo, deviceLocalPath = InstrumentationRegistry.getInstrumentation() .targetContext