minor speedup in runtests all
Merge pull request #5751 from amitmurthy/amitm/tests

minor speedup in runtests all