File tree Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Original file line number Diff line number Diff line change 33
33
- name : Checkout
34
34
uses : actions/checkout@v2
35
35
- name : Build image
36
- run :
37
- podman build . --tag $IMAGE_NAME --file Dockerfile
36
+ run : podman build . --tag $IMAGE_NAME --file Dockerfile
38
37
- name : Basic Test
39
38
run : |
40
39
podman run --shm-size=1g \
@@ -158,5 +157,5 @@ jobs:
158
157
run : |
159
158
podman run --user=2000:2000 --shm-size=1g \
160
159
-v `pwd`/test/rerun.robot:/opt/robotframework/tests/rerun.robot:Z \
161
- -e ROBOT_RERUN_FAILED=20 \
160
+ -e ROBOT_RERUN_FAILED=50 \
162
161
$IMAGE_NAME
Original file line number Diff line number Diff line change 14
14
* [ Testing emails] ( #testing-emails )
15
15
* [ Dealing with Datetimes and Timezones] ( #dealing-with-datetimes-and-timezones )
16
16
* [ Installing additional dependencies] ( #installing-additional-dependencies )
17
+ * [ Rerunning tests] ( #rerunning-tests )
17
18
* [ Security consideration] ( #security-consideration )
18
19
* [ Continuous integration] ( #continuous-integration )
19
20
* [ Azure DevOps pipeline] ( #ci-azure-devops )
Original file line number Diff line number Diff line change 53
53
54
54
ROBOT_EXIT_CODE=$?
55
55
56
- if [[ ${ROBOT_EXIT_CODE} -gt 0 ] ]
56
+ if [ ${ROBOT_EXIT_CODE} -gt 0 ]
57
57
then
58
- for (( i = 0 ; i < ${ROBOT_RERUN_FAILED} ; i++ ))
58
+ for (( i = 1 ; i <= ${ROBOT_RERUN_FAILED} ; i++ ))
59
59
do
60
60
echo " Rerunning failed tests, round ${i} ..."
61
61
xvfb-run \
71
71
72
72
rebot \
73
73
--outputDir $ROBOT_REPORTS_FINAL_DIR \
74
- --merge $ROBOT_REPORTS_FINAL_DIR /output_rerun.xml \
75
- $ROBOT_REPORTS_FINAL_DIR /output.xml
74
+ --output $ROBOT_REPORTS_FINAL_DIR /output.xml \
75
+ --merge $ROBOT_REPORTS_FINAL_DIR /output.xml \
76
+ $ROBOT_REPORTS_FINAL_DIR /output_rerun.xml \
77
+ > /dev/null
78
+
79
+ rm $ROBOT_REPORTS_FINAL_DIR /output_rerun.xml
76
80
77
81
if [ ${ROBOT_EXIT_CODE} -eq 0 ]
78
82
then
Original file line number Diff line number Diff line change 1
1
*** Test Cases ***
2
2
3
- Randomly Fail Test
4
- ${rand } = Evaluate random.randint(0,3)
5
- IF ${rand } > 0
3
+ Roll Dice 1
4
+ ${rand } = Evaluate random.randint(1,6)
5
+ IF ${rand } > 1
6
+ Fail
7
+ END
8
+
9
+ Roll Dice 2
10
+ ${rand } = Evaluate random.randint(1,6)
11
+ IF ${rand } > 1
12
+ Fail
13
+ END
14
+
15
+ Roll Dice 3
16
+ ${rand } = Evaluate random.randint(1,6)
17
+ IF ${rand } > 1
18
+ Fail
19
+ END
20
+
21
+ Roll Dice 4
22
+ ${rand } = Evaluate random.randint(1,6)
23
+ IF ${rand } > 1
6
24
Fail
7
25
END
You can’t perform that action at this time.
0 commit comments