Skip to content

Commit 31a3274

Browse files
author
Anthony Landreth
committed
shell-agnostic tests
1 parent 61014a6 commit 31a3274

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

testing/kuttl/e2e/pgbackrest-init/05--check-spool-path.yaml renamed to testing/kuttl/e2e/pgbackrest-init/06--check-spool-path.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ commands:
1313
ls -l /pgdata
1414
)
1515
16-
[[ "$LIST" =~ "pgbackrest-spool" ]] || exit 1
16+
contains() { bash -ceu '[[ "$1" == *"$2"* ]]' - "$@"; }
17+
contains "$LIST" "pgbackrest-spool" || exit 1

testing/kuttl/e2e/wal-pvc-pgupgrade/06--check-spool-path.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ commands:
1313
ls -l /pgdata
1414
)
1515
16+
contains() { bash -ceu '[[ "$1" == *"$2"* ]]' - "$@"; }
17+
1618
# Confirm that the pgbackrest spool-path has been symlinked to the wal volume.
17-
[[ $LIST == *"pgbackrest-spool -> /pgwal/pgbackrest-spool"* ]] || exit 1
19+
contains "$LIST" "pgbackrest-spool -> /pgwal/pgbackrest-spool" || exit 1

0 commit comments

Comments
 (0)