run-tests: fix some race condition

Merged Pierre-Yves David requested to merge topic/stable/fix-channel into branch/stable

Merge request reports