Fix suspend test

Problem: If the debugger connects too fast, the app may still be booting
and not have reached the point where it suspend itself.

Solution: If the app condition is not met, retry after 1s. We retry four
times.

Bug: 334662793
Test: This is the test
Change-Id: Id62f77e321e30a791057594e9af47bd756de7636
1 file changed