diff --git a/runtests.py b/runtests.py index 5b64f8b..b4d7996 100755 --- a/runtests.py +++ b/runtests.py @@ -11,7 +11,10 @@ suites = [] # Yay, import hacks! sys.path.append(os.path.join(os.getcwd(), 'tests')) -for testfile in glob.glob('tests/test_*.py'): + +query = sys.argv[1:] or glob.glob('tests/test_*.py') + +for testfile in query: # Strip the tests/ and .py extension: tests/test_whatever.py => test_whatever module = testfile.replace('.py', '').replace('tests/', '') module = __import__(module)