Closed peterfranssen closed 2 years ago
Hi all, I'm looking for a clean solution for rerunning failed tests in using the docker image. I've already progressed using the following issue: https://github.com/ppodgorsek/docker-robot-framework/issues/300.
However I'm currently stuck at the below error when executing the second 'docker run' block:
/home/runner/work/_temp/2e72147f-a48f-47a9-836f-005a8456b7fd.sh: line 18: -v: command not found
Code for rerunning a set of testcases with two tries and the merging of the results afterwards:
# run Robot Framework tests inside Docker container and rerun if failed - name: Run Robot Framework Tests run: | docker run --rm \ -v ${PWD}/reports:/opt/robotframework/reports:Z \ -v ${PWD}/rfafricapwa/tests:/opt/robotframework/tests:Z \ --mount type=bind,source=${PWD}/rfafricapwa/resources,target=/opt/robotframework/resources \ -e PABOT_OPTIONS="--testlevelsplit" \ --user $(id -u):$(id -g) \ ppodgorsek/robot-framework:latest || docker run --rm \ -v ${PWD}/reports:/opt/robotframework/reports:Z \ -v ${PWD}/rfafricapwa/tests:/opt/robotframework/tests:Z \ --mount type=bind,source=${PWD}/rfafricapwa/resources,target=/opt/robotframework/resources \ -e PABOT_OPTIONS="--testlevelsplit --rerunfailed /opt/robotframework/reports/output.xml -o output2.xml" \ --user $(id -u):$(id -g) \ ppodgorsek/robot-framework:latest || docker run --rm \ -v ${PWD}/reports:/opt/robotframework/reports:Z \ -e REBOT_OPTIONS="-d /opt/robotframework/reports -o /opt/robotframework/reports/output.xml -x /opt/robotframework/reports/junit.xml --merge /opt/robotframework/reports/output*.xml" \ ppodgorsek/robot-framework:latest
Any clue how I can improve this step as well as cleaning it up?
Trailing spaces caused the above issue.
Hi all, I'm looking for a clean solution for rerunning failed tests in using the docker image. I've already progressed using the following issue: https://github.com/ppodgorsek/docker-robot-framework/issues/300.
However I'm currently stuck at the below error when executing the second 'docker run' block:
/home/runner/work/_temp/2e72147f-a48f-47a9-836f-005a8456b7fd.sh: line 18: -v: command not found
Code for rerunning a set of testcases with two tries and the merging of the results afterwards:
Any clue how I can improve this step as well as cleaning it up?