Skip to content

Commit

Permalink
making GH Actions happy
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysGonchar committed Nov 24, 2023
1 parent 197a24e commit 131f596
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions integration_test/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ function contains_all() {
for pattern in "$@"; do
ret="$(echo "$output" | grep -L -e "$pattern" | wc -l)"
if [ "$ret" -ne "0" ]; then
[ "$(($acc))" -eq "0" ] && echo "output: '${output}'"
[ "$(($acc))" -eq "0" ] && {
echo "contains_all FAILED"
echo "stdin: '${output}'"; }
echo "pattern is missing: '${pattern}'"
fi > /dev/tty
fi >&2
acc+="+${ret}"
done
test "$(($acc))" -eq 0
Expand All @@ -36,9 +38,11 @@ function doesnt_contain_any() {
for pattern in "$@"; do
ret="$(echo "$output" | grep -l -e "$pattern" | wc -l || true)"
if [ "$ret" -ne "0" ]; then
[ "$(($acc))" -eq "0" ] && echo "output: '${output}'"
[ "$(($acc))" -eq "0" ] && {
echo "doesnt_contain_any FAILED"
echo "stdin: '${output}'"; }
echo "pattern is present: '${pattern}'"
fi > /dev/tty
fi >&2
acc+="+${ret}"
done
test "$(($acc))" -eq 0
Expand Down

0 comments on commit 131f596

Please sign in to comment.