bug fix: end_time var does not exist to calculate duration
[functest.git] / ci / exec_test.sh
index 8c87160..2269aa7 100755 (executable)
@@ -134,13 +134,17 @@ function run_test(){
             # ${repos_dir}/ovno/Testcases/RunTests.sh
         ;;
         "security_scan")
-            # TODO
-            # call you script here....
+            # To be enabled once verified manually
+            # python ${FUNCTEST_REPO_DIR}/Testcases/security_scan/security_scan.py --config config.ini
         ;;
         *)
             echo "The test case '${test_name}' does not exist."
             exit 1
     esac
+
+    if [[ $? != 0 ]]; then exit 1
+    else exit 0
+    fi
 }