[dovetail] Add TESTAREA to support run mandatory or optional test cases
[releng.git] / jjb / dovetail / dovetail-run.sh
index c77b826..b171703 100755 (executable)
@@ -195,7 +195,7 @@ if [ -f ${DOVETAIL_CONFIG}/pod.yaml ]; then
     if [ "$INSTALLER_TYPE" == "apex" ]; then
         attack_process='rabbitmq_server'
     else
-        attach_process='rabbitmq'
+        attack_process='rabbitmq'
     fi
     cat << EOF >> ${DOVETAIL_CONFIG}/pod.yaml
 process_info:
@@ -345,7 +345,17 @@ else
     testsuite="--testsuite ${TESTSUITE}"
 fi
 
-run_cmd="dovetail run ${testsuite} -d"
+if [[ ${TESTAREA} == 'mandatory' ]]; then
+    testarea='--mandatory'
+elif [[ ${TESTAREA} == 'optional' ]]; then
+    testarea="--optional"
+elif [[ ${TESTAREA} == 'all' ]]; then
+    testarea=""
+else
+    testarea="--testarea ${TESTAREA}"
+fi
+
+run_cmd="dovetail run ${testsuite} ${testarea} -d"
 echo "Container exec command: ${run_cmd}"
 docker exec $container_id ${run_cmd}