This repository was archived by the owner on Nov 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,10 @@ find_test_job(){
173173 return 1
174174}
175175
176- USAGE=" Usage: rq -b BRANCH -a ---> For runing all the test ids\n\
177- or rq -b BRANCH -g TESTGROUPNAME ---> For runing a TESTGROUPNAME\n\
178- or rq -b BRANCH -t TESTIDS ---> For runing a space separated set of TESTIDS"
176+ USAGE=" Usage:\n\n 1. rq.sh -l ---> List all available test identifiers without running them\n\
177+ 2. rq.sh -b -a ---> For running all tests\n\
178+ 3. rq.sh -b -g <test_group_name> ---> For running a test group\n\
179+ 4. rq.sh -b -t \" <test_id1> <test_id2> <test_id3>\" ---> For running a space separated list of tests"
179180
180181list_test_ids (){
181182 for runtest in ` find . -name run_test\. sh` ; do
@@ -199,12 +200,20 @@ OPTIND=1
199200output_file=" "
200201verbose=0
201202
202- while getopts " :b:t:g:a" opt; do
203+ if [ $# -eq 0 ];
204+ then
205+ echo -e $USAGE
206+ exit 0
207+ fi
208+ while getopts " :b:t:g:a:l" opt; do
203209 case " $opt " in
204210 b) branch=$OPTARG ;;
205211 t) test_ids=($OPTARG );;
206212 a) test_ids=(` list_test_ids` );;
207- g) test_ids=(` list_group_test_ids $OPTARG ` );;
213+ g) test_ids=(` list_group_test_ids $OPTARG ` );;
214+ l) test_ids=(` list_test_ids` )
215+ echo ${test_ids[@]} | tr " " " \n"
216+ exit 0;;
208217 * ) echo -e " Invalid option"
209218 echo -e $USAGE
210219 exit 1 ;;
You can’t perform that action at this time.
0 commit comments