diff options
author | mei mei <meimei@huawei.com> | 2018-07-18 06:31:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-07-18 06:31:14 +0000 |
commit | 91669b39a0a6023cee20578f49efe6e633738b06 (patch) | |
tree | 3acd44c0ae6722715d0063a9bf6c4220a5dca3bf /jjb/dovetail/dovetail-run.sh | |
parent | 36a9f477a6b25c7bf1aa64e38b0df90316a73161 (diff) | |
parent | 44c6fed1fac2ec2340edc14437c9200bc21e0745 (diff) |
Merge "[dovetail] Add TESTAREA to support run mandatory or optional test cases"
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 0b3510863..c92ebba02 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -362,7 +362,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} |