Skip to content

Commit 08af2db

Browse files
committed
Test data cleanup.
For loops and whitespace
1 parent 9925c18 commit 08af2db

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

atest/robot/standard_libraries/builtin/run_keyword_and_continue_on_failure.robot

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Suite Setup Run Tests ${EMPTY} standard_libraries/builtin/run_keywor
33
Resource atest_resource.robot
44

55
*** Test Cases ***
6-
76
Run Keyword And Continue On Failure
87
${tc}= Check Test Case ${TESTNAME}
98
Check Log Message ${tc.kws[0].kws[0].msgs[0]} Expected Failure FAIL

atest/testdata/running/continue_on_failure.robot

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
Suite Teardown Continuable Failure In User Keyword In Suite Teardown
33
Library Exceptions
44

5-
65
*** Variables ***
76
${HEADER} Several failures occurred:
87
${EXC} ContinuableApocalypseException
98
${ERROR} ${EXC}: Can be continued
109
${TEARDOWN ERROR} Also parent suite teardown failed:\nContinuableApocalypseException: Can be continued
1110
${ERROR WITH TEARDOWN} ${ERROR}\n\n${TEARDOWN ERROR}
1211

13-
1412
*** Test Cases ***
1513
Continue in test
1614
[Documentation] FAIL ${ERROR WITH TEARDOWN}
@@ -157,9 +155,10 @@ Continue in for loop
157155
... 4) ContinuableApocalypseException: 3\n\n
158156
... 5) ContinuableApocalypseException: 4\n\n
159157
... ${TEARDOWN ERROR}
160-
:FOR ${i} IN RANGE 0 5
161-
\ Raise Continuable Failure ${i}
162-
\ Log This should be executed inside for loop
158+
FOR ${i} IN RANGE 0 5
159+
Raise Continuable Failure ${i}
160+
Log This should be executed inside for loop
161+
END
163162
Log This should be executed after for loop
164163

165164
Continuable and regular failure in for loop
@@ -169,14 +168,14 @@ Continuable and regular failure in for loop
169168
... 3) ContinuableApocalypseException: keijo\n\n
170169
... 4) keijo == keijo\n\n
171170
... ${TEARDOWN ERROR}
172-
:FOR ${name} IN janne jussi keijo juha jooseppi
173-
\ Raise Continuable Failure ${name}
174-
\ Should Not Be Equal ${name} keijo
171+
FOR ${name} IN janne jussi keijo juha jooseppi
172+
Raise Continuable Failure ${name}
173+
Should Not Be Equal ${name} keijo
174+
END
175175
Fail Should not be executed
176176

177177

178178
*** Keywords ***
179-
180179
Continuable Failure In User Keyword In ${where}
181180
Raise Continuable Failure
182181
Log This should be executed in ${where}

atest/testdata/standard_libraries/builtin/run_keyword_and_continue_on_failure.robot

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Run Keyword And Continue On Failure In For Loop
1717
... 3) 3 != 2\n\n
1818
... 4) 3 != 4\n\n
1919
... 5) Stop here!!
20-
:FOR ${i} IN RANGE 0 5
21-
\ Run keyword And Continue On Failure Should Be Equal ${3} ${i}
20+
FOR ${i} IN RANGE 0 5
21+
Run keyword And Continue On Failure Should Be Equal ${3} ${i}
22+
END
2223
Fail Stop here!!
2324
Fail This isn't executed anymore
2425

@@ -33,9 +34,10 @@ Run Keyword And Continue On Failure With For Loops
3334
... 2) UK: a\n\n
3435
... 3) KW: b\n\n
3536
... 4) UK: b
36-
:FOR ${x} IN a b
37-
\ Run Keyword and Continue on Failure Fail KW: ${x}
38-
\ Run Keyword and Continue on Failure Exception In User Keyword UK: ${x}
37+
FOR ${x} IN a b
38+
Run Keyword and Continue on Failure Fail KW: ${x}
39+
Run Keyword and Continue on Failure Exception In User Keyword UK: ${x}
40+
END
3941

4042
Nested Run Keyword And Continue On Failure
4143
[Documentation] FAIL Several failures occurred:\n\n

0 commit comments

Comments
 (0)