From 70045164324f78e47f8510a21a4d3adf72b9d8e3 Mon Sep 17 00:00:00 2001 From: Italo Maia Date: Wed, 20 Jan 2010 11:26:02 -0300 Subject: [PATCH] embelezando o codigo um pouco --- run_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run_tests.py b/run_tests.py index 8dcf69e..072fe01 100644 --- a/run_tests.py +++ b/run_tests.py @@ -14,11 +14,11 @@ if __name__ == '__main__': # Test each package if run_level is None: - test_files = glob.glob('%s/*.txt' % os.path.join(CUR_DIR, 'tests')) - else: - test_files = glob.glob('%s/%s-*.txt' % \ - (os.path.join(CUR_DIR, 'tests'), run_level)) + search_path = '%s/*.txt' % os.path.join(CUR_DIR, 'tests') + else: search_path = '%s/%s-*.txt' % \ + (os.path.join(CUR_DIR, 'tests'), run_level) + test_files = glob.glob(search_path) test_files = map(lambda i: i[len(CUR_DIR)+1:], test_files) # Run the tests