Skip to content

Commit

Permalink
Change pabot process 3 to 1 to make cases as sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
luwang committed Jan 9, 2019
1 parent f2a60f9 commit 9c0cafc
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions tests/robot-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,24 @@ if [ "${DRONE_BUILD_NUMBER}" -eq 0 ]; then
pybot -d robot-logs/robot-log-$now $run_options tests/test-cases
else
# run pabot cmd on CI

echo "Running integration tests on CI..."
pabot --verbose --processes 3 -d robot-logs --output original.xml $run_options tests/test-cases

pabot --verbose --processes 1 -d robot-logs --output original.xml $run_options tests/test-cases

#testcases=("tests/test-cases/Group1-OVA-Install" "tests/test-cases/Group2-Getting-Started" "tests/test-cases/Group3-Admiral" "tests/test-cases/Group5-DCH")
#pabot --verbose --processes 3 -d robot-logs --output original_1.xml $run_options "${testcases[@]}"

#testcases=("tests/test-cases/Group4-Harbor")
#pabot --verbose --processes 1 -d robot-logs --output original_2.xml $run_options "${testcases[@]}"
#rebot -d robot-logs --merge robot-logs/original_1.xml robot-logs/original_2.xml
# do not try re-run if all the tests were passed
if [ $? -eq 0 ]; then
echo "All tests passed on first try, no re-run required"
exit 0
fi
#if [ $? -eq 0 ]; then
# echo "All tests passed on first try, no re-run required"
# exit 0
#fi

# re-run only failed tests and merge results
pabot --verbose --processes 3 -d robot-logs --rerunfailed robot-logs/original.xml --output rerun.xml $run_options tests/test-cases
rebot -d robot-logs --merge robot-logs/original.xml robot-logs/rerun.xml
#pabot --verbose --processes 3 -d robot-logs --rerunfailed robot-logs/original.xml --output rerun.xml $run_options tests/test-cases
#rebot -d robot-logs --merge robot-logs/original.xml robot-logs/rerun.xml
fi

0 comments on commit 9c0cafc

Please sign in to comment.