Moved tests to a sub-folder of the contrib folder. Made globs in runtest.py check one level down

This commit is contained in:
ade@google.com
2010-12-10 22:54:02 +00:00
parent 364e6953c7
commit 5ff125d6cd
3 changed files with 4 additions and 1 deletions

View File

View File

@@ -18,7 +18,10 @@ sys.path.insert(0, os.getcwd())
def build_suite(folder, verbosity):
# find all of the test modules
modules = map(fullmodname, glob.glob(os.path.join(folder, 'test_*.py')))
top_level_modules = map(fullmodname, glob.glob(os.path.join(folder, 'test_*.py')))
# TODO(ade) Verify that this works on Windows. If it doesn't then switch to os.walk instead
lower_level_modules = map(fullmodname, glob.glob(os.path.join(folder, '*/test_*.py')))
modules = top_level_modules + lower_level_modules
if verbosity > 0:
print "Running the tests found in the following modules:"
print modules