8000 Fix testdata FOR loop syntax · pythonthings/robotframework@e2019e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2019e1

Browse files
yannepekkaklarck
authored andcommitted
Fix testdata FOR loop syntax
1 parent 5f3a371 commit e2019e1

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

atest/testdata/cli/remove_keywords/all_combinations.robot

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ Warnings and errors are preserved
8787

8888
*** Keywords ***
8989
My FOR
90-
:FOR ${item} IN one two three LAST
91-
\ Run Keyword If "${item}" == "LAST"
92-
\ ... Log ${KEPT FOR MESSAGE} ${item}
93-
\ ... ELSE
94-
\ ... Log ${REMOVED FOR MESSAGE} ${item}
90+
FOR ${item} IN one two three LAST
91+
Run Keyword If "${item}" == "LAST"
92+
... Log ${KEPT FOR MESSAGE} ${item}
93+
... ELSE
94+
... Log ${REMOVED FOR MESSAGE} ${item}
95+
END
9596

9697
My WUKS
9798
Set Test Variable $COUNTER ${COUNTER + 1}

atest/testdata/running/pass_execution.robot

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ Used in template keyword
5757

5858
Used in for loop
5959
[Documentation] PASS Message with 'foo'
60-
:FOR ${var} IN foo bar
61-
\ Pass Execution Message with '${var}'
62-
\ Should Not Be Executed
60+
FOR ${var} IN foo bar
61+
Pass Execution Message with '${var}'
62+
Should Not Be Executed
63+
END
6364
Should Not Be Executed
6465

6566
Used in setup
@@ -104,11 +105,12 @@ After continuable failure in FOR loop
104105
... 2) Failure 2
105106
...
106107
... 3) Failure 3
107-
:FOR ${i} IN RANGE 1 10
108-
\ Run Keyword And Continue On Failure Fail Failure ${i}
109-
\ Run Keyword If $i > 2 Run Keywords
110-
\ ... Pass Execution This message is NOT used AND
111-
\ ... Should Not Be Executed
108+
FOR ${i} IN RANGE 1 10
109+
Run Keyword And Continue On Failure Fail Failure ${i}
110+
Run Keyword If $i > 2 Run Keywords
111+
... Pass Execution This message is NOT used AND
112+
... Should Not Be Executed
113+
END
112114
Should Not Be Executed
113115

114116
After continuable failure and before failing teardown

0 commit comments

Comments
 (0)
0