Merge "Remove exec_test.sh"
authorJose Lausuch <jose.lausuch@ericsson.com>
Thu, 2 Mar 2017 14:42:50 +0000 (14:42 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 2 Mar 2017 14:42:50 +0000 (14:42 +0000)
1  2 
functest/ci/run_tests.py

@@@ -174,15 -166,10 +167,11 @@@ def run_test(test, tier_name, testcases
              logger.exception("Cannot get class {}".format(
                  run_dict['class']))
      else:
-         cmd = ("%s%s" % (EXEC_SCRIPT, flags))
-         logger.info("Executing command {} because {} "
-                     "doesn't implement the new framework".format(
-                         cmd, test_name))
-         result = ft_utils.execute_command(cmd)
+         raise Exception("Cannot import the class for the test case.")
  
 -    if GlobalVariables.CLEAN_FLAG:
 +    if test.needs_clean() and GlobalVariables.CLEAN_FLAG:
          cleanup()
 +
      end = datetime.datetime.now()
      duration = (end - start).seconds
      duration_str = ("%02d:%02d" % divmod(duration, 60))