Commit 74375035 authored by Eteri's avatar Eteri

fix test path

parent e4aae2df
......@@ -10,6 +10,7 @@ from erp5.util import taskdistribution
from erp5.util.testsuite import TestSuite as BaseTestSuite
from erp5.util.testsuite import SubprocessError
import shlex
import glob
......@@ -76,6 +77,14 @@ class TestSuite(BaseTestSuite):
+int(groupdict['expected_failures'] or 0))
return status_dict
def getTestList(self):
test_list = []
for test_path in glob.glob('test*.py'):
test_case = test_path.split(os.sep)[-1][:-3] # remove .py
print test_case
# testOooMonitorRequest is making testsuite stall.
return test_list
def main():
parser = argparse.ArgumentParser(description='Run a test suite.')
......@@ -104,7 +113,7 @@ def main():
node_quantity=args.node_quantity,
revision=revision)
test_result = master.createTestResult(revision, testList,
test_result = master.createTestResult(revision, suite.getTestList(),
args.test_node_title, suite.allow_restart, test_suite_title,
args.project_title)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment