diff options
author | xudan <xudan16@huawei.com> | 2018-07-12 08:16:34 -0400 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2018-07-16 05:35:36 -0400 |
commit | 44c6fed1fac2ec2340edc14437c9200bc21e0745 (patch) | |
tree | 6a3631b8251304501d14136820f4939cd1ccd7d3 /jjb/dovetail/dovetail-run.sh | |
parent | 9e7782b895027e4ecde120193e634144389211c9 (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-x | jjb/dovetail/dovetail-run.sh | 12 |
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} |