support --test-dir option in oftest.py

Reviewer: trivial