OSDN Git Service

Wait for the profile to not be empty in BootImageProfileTest
authorMathieu Chartier <mathieuc@google.com>
Tue, 24 Sep 2019 20:11:26 +0000 (13:11 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 24 Sep 2019 22:13:26 +0000 (15:13 -0700)
commit4aafe443c37849cfa0f37378bdc87647c8d00d01
treef9315aa71d9af26467a08c91ec568288add5795a
parent6c5f83aaa3f81ee0b1d789f11f402145f04674bb
Wait for the profile to not be empty in BootImageProfileTest

Keep trying to force profile saves until it's not empty. This handles
the case when the system server isn't started enough to save a profile
yet. This can be affected by boot time fluctuations if we don't wait.

Test: atest BootImageProfileTest
Bug: 139883463

Change-Id: I98b359412f919bd64c2cd2a5b7d6659d1cef113d
tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java