Fix ReplicationIT flakiness by listing all persistent tasks
Since Change-Id: Ia31329e8 the tasks are stored in three
different directories, based on their waiting/running/building
List all tasks on all directories so that they can be discovered
and checked by the integration tests.
The flakiness in tests was coming from the possibility that tasks
were already migrated into a different state during the wait cycles
and thus the test could randomly miss them.
Bug: Issue 11843
2 files changed