aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2016-10-18 13:59:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-18 13:59:40 +0000
commitee65be08012c74674ca7ba3261aaa6693f9773ba (patch)
tree9cb78a211ac2948f0df88bf979ad004b9adcac32 /ci
parent8015f7e1b4da654b88ab52f7226e311a19dbbc4f (diff)
parent6ba4e817cf71a69ddf6606dcc5005b8d8e8692e9 (diff)
Merge "Conform ODL to TestCasesBase"
Diffstat (limited to 'ci')
-rwxr-xr-xci/run_tests.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/ci/run_tests.py b/ci/run_tests.py
index 638a6edf3..834a29bfe 100755
--- a/ci/run_tests.py
+++ b/ci/run_tests.py
@@ -17,12 +17,14 @@ import argparse
import functest.ci.generate_report as generate_report
import functest.ci.tier_builder as tb
+import functest.core.TestCasesBase as TestCasesBase
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as ft_utils
import functest.utils.openstack_clean as os_clean
import functest.utils.openstack_snapshot as os_snapshot
import functest.utils.openstack_utils as os_utils
-from functest.testcases.Controllers.ODL.OpenDaylightTesting import ODLTestCases
+import functest.testcases.Controllers.ODL.OpenDaylightTesting as odl_test
+
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--test", dest="test", action='store',
@@ -101,10 +103,10 @@ def run_test(test, tier_name):
flags += " -r"
if test_name == 'odl':
- result = ODLTestCases.functest_run()
- if result and REPORT_FLAG:
- result = ODLTestCases.push_to_db()
- result = not result
+ odl = odl_test.ODLTestCases()
+ result = odl.run()
+ if result == TestCasesBase.TestCasesBase.EX_OK and REPORT_FLAG:
+ result = odl.push_to_db()
else:
cmd = ("%s%s" % (EXEC_SCRIPT, flags))
logger.debug("Executing command '%s'" % cmd)