Skip to content

Set robotframework --exitonfailure flag by default.#361

Open
amanning9 wants to merge 6 commits into
develfrom
robot-fail-fast
Open

Set robotframework --exitonfailure flag by default.#361
amanning9 wants to merge 6 commits into
develfrom
robot-fail-fast

Conversation

@amanning9

Copy link
Copy Markdown
Contributor

When one of the robot tests fails, robot carries on running all the other tests, even though they are going to fail as a whole.

We should fix this by failing fast in most cases, which will save CI resources, and maybe a bit of time.

Comment thread bin/run-tests

extraargs=""
if [[ $EXIT_ON_FAILURE == true ]]; then
extraargs="--exitonfailure $extraargs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't $extraargs always empty here because line 25 has set to the empty string
If you delete line 25 and use
extraargs="--exitonfailure ${extraargs-}"
that will not blow up if $extraargs isn't set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants