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
status.

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
Change-Id: Ie164b03579cc917f1095cfde6d77cab630f77759
2 files changed
tree: 0a041782bc2b932bb4d9210858ee181ecc4953bd
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  5. LICENSE
  6. src/