BUG: runtests: make -t option work again
Merge pull request #3949 from charris/backport-1.8-3948

backport-1.8-3948