Build: Allow to specify timeout in the testswarm task

(cherry-picked from a81dbc4ed82bc38b1ac5f6a8242e044232ea1594)