From 44c6fed1fac2ec2340edc14437c9200bc21e0745 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 12 Jul 2018 08:16:34 -0400 Subject: [dovetail] Add TESTAREA to support run mandatory or optional test cases JIRA: DOVETAIL-694 Change-Id: I4d2f4342bb10b5199c0dd1ed6ee579df14cb1517 Signed-off-by: xudan --- jjb/dovetail/dovetail-run.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'jjb/dovetail/dovetail-run.sh') 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} -- cgit 1.2.3-korg