Skip to content

Commit fcbd215

Browse files
committed
fix: set -euo pipefail to all tests/functional
1 parent d7efc4d commit fcbd215

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/functional/custom_asserts_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
function set_up() {
45
_ROOT_DIR="$(dirname "${BASH_SOURCE[0]}")"

tests/functional/logic_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
ROOT_DIR="$(dirname "${BASH_SOURCE[0]}")"
45

tests/functional/multi_invoker_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
_TEST_MULTI_INVOKER_ITERATION_FILE=""
45

@@ -15,7 +16,7 @@ function tear_down_after_script() {
1516
function test_multi_invoker_simple() {
1617
local current_number="$1"
1718
local second_arg="$2"
18-
local third_arg="$3"
19+
local third_arg="${3-}"
1920

2021
local current_iteration=0
2122

tests/functional/provider_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
_TEST_GET_DATA_FROM_PROVIDER_ITERATION_FILE=""
45

0 commit comments

Comments
 (0)