Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: The name to use for the debug bundle artifact.
required: true
default: debug-bundle
exit-on-failure:
description: If true, robot will exit the tests as soon as the first failure occurs.
required: false
default: true
runs:
using: composite
steps:
Expand Down Expand Up @@ -44,6 +48,8 @@ runs:

- name: Run test suite
shell: bash
env:
EXIT_ON_FAILURE: ${{ inputs.exit-on-failure }}
run: |
set -e
source ./ci.env
Expand Down
6 changes: 6 additions & 0 deletions bin/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ ansible_variable() {
work_bin_dir="$(ansible_variable work_directory)/bin"
export PATH=$PATH:$work_bin_dir

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

# Get the test directory
test_directory="$(ansible_variable generate_tests_suite_directory)"
test_vars_file="$(ansible_variable generate_tests_vars_file)"
Expand All @@ -32,5 +37,6 @@ exec robot \
--loglevel debug \
--consolecolors on \
--variablefile "$test_vars_file" \
"$extraargs" \
"$@" \
"$test_directory"
Loading