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

Commit bf08f0a4 authored by Mårten Kongstad's avatar Mårten Kongstad Committed by Todd Kennedy
Browse files

OMS: stabilize unit tests

- Add hasCode=false to overlay packages as a workaround for b/124375490

- Sprinkle Thread.sleeps in InstallOverlayTests in an attempt to make
  the tests less flakey when executed on emulator

Test: atest OverlayDeviceTests OverlayHostTests
Change-Id: I745a8477ed5e72db572737a0af0e59478893e42b
parent 01f07e5f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="test.overlay">
    <application android:hasCode="false"/>
    <overlay
        android:targetPackage="test.target"
        android:targetName="TestResources"/>
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="test.overlay.system">
    <application android:hasCode="false"/>
    <overlay
        android:targetPackage="test.target"
        android:targetName="TestResources"/>
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="test.overlay.system.invalid">
    <application android:hasCode="false"/>
    <overlay
        android:targetPackage="test.target"
        android:targetName="TestResources"/>
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="test.overlay.system">
    <application android:hasCode="false"/>
    <overlay
        android:targetPackage="test.target"
        android:targetName="TestResources"/>
+1 −0
Original line number Diff line number Diff line
@@ -18,5 +18,6 @@
        package="com.android.overlaytest.app_overlay_one"
        android:versionCode="1"
        android:versionName="1.0">
        <application android:hasCode="false" />
        <overlay android:targetPackage="com.android.overlaytest" android:priority="1" />
</manifest>
Loading