Update the unittest finder to look for _test.py suffixes as well.
This way logging_manager_test.py is found and run.
Signed-off-by: Gregory Smith <gps@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3351 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/unittest_suite.py b/utils/unittest_suite.py
index 91da532..cb9150a 100755
--- a/utils/unittest_suite.py
+++ b/utils/unittest_suite.py
@@ -25,6 +25,7 @@
'client_compilation_unittest.py',
'csv_encoder_unittest.py',
'rpc_interface_unittest.py',
+ 'logging_manager_test.py',
))
modules = []
@@ -34,7 +35,7 @@
if not os.path.exists(os.path.join(dirname, '__init__.py')):
return
for f in files:
- if f.endswith('_unittest.py'):
+ if f.endswith('_unittest.py') or f.endswith('_test.py'):
if not full and f in LONG_TESTS:
continue
temp = os.path.join(dirname, f).strip('.py')