Merge "Make BootImageProfileTest less flaky" into rvc-dev am: 644dac75e5 am: 04be74591a

Change-Id: I8723b0f0a51231fd63e95f045d62295c1416909c
This commit is contained in:
Automerger Merge Worker
2020-03-06 19:49:59 +00:00

View File

@@ -78,13 +78,12 @@ public class BootImageProfileTest implements IDeviceTest {
return false;
}
String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim();
assertTrue("kill SIGUSR1: " + res, res.length() == 0);
return true;
return res.length() == 0;
}
@Test
public void testSystemServerProfile() throws Exception {
final int numIterations = 20;
final int numIterations = 30;
String res;
// Set properties and wait for them to be readable.
for (int i = 1; i <= numIterations; ++i) {