summaryrefslogtreecommitdiffstats
path: root/jjb/dovetail/dovetail-run.sh
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-07-12 08:16:34 -0400
committerxudan <xudan16@huawei.com>2018-07-16 05:35:36 -0400
commit44c6fed1fac2ec2340edc14437c9200bc21e0745 (patch)
tree6a3631b8251304501d14136820f4939cd1ccd7d3 /jjb/dovetail/dovetail-run.sh
parent9e7782b895027e4ecde120193e634144389211c9 (diff)
[dovetail] Add TESTAREA to support run mandatory or optional test cases
JIRA: DOVETAIL-694 Change-Id: I4d2f4342bb10b5199c0dd1ed6ee579df14cb1517 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'jjb/dovetail/dovetail-run.sh')
-rwxr-xr-xjjb/dovetail/dovetail-run.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh
index 2a9c73c2f..b1717039a 100755
--- a/jjb/dovetail/dovetail-run.sh
+++ b/jjb/dovetail/dovetail-run.sh
@@ -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}