tests: Handle pipelines in waiting_for_resource state
The test pipeline use the tests/dash> repository as a shared resource,
if there are multiple pipelines running they could end up in the
waiting_for_resource
state, waiting for tests/dash> to be free.