Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change CI cases into sequential run #2291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comment testcases.

# 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