Rename cases to modules and minor bug fix
[integration/test.git] / test / tools / CSIT_Test / base / run.py
index 929f7e6d1ed66f625bd681c182920e25d9b53d17..1a4dabc23b97075cc052aaf0bdeb36d0454b4c14 100644 (file)
@@ -14,7 +14,7 @@ import os
 from restlib import *
 
 
-def test_case(module_name):
+def test_module(module_name):
     '''
     Run single test on given module.
     '''
@@ -30,10 +30,10 @@ def run(modules=None):
     '''
     backup_dir = os.getcwd()
     if not modules:
-        modules = [e[:-3] for e in os.listdir(CASES_DIR) if e.endswith('.py')]
-    os.chdir(backup_dir + '/' + CASES_DIR)
+        modules = [e[:-3] for e in os.listdir(MODULES_DIR) if e.endswith('.py')]
+    os.chdir(backup_dir + '/' + MODULES_DIR)
     for name in modules:
-        test_case(name)
+        test_module(name)
     os.chdir(backup_dir)