scripts: Allow to specify a limit on the number of tests reported