Skip to content

Commit

Permalink
tests: fix pg version detection on debian
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
  • Loading branch information
bruno-at-bareos authored and joergsteffens committed Apr 15, 2024
1 parent 2766dbc commit 535874d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemtests/tests/py3plug-fd-postgresql/testrunner-debian
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if ([ -z "${ID}" ] || [ "${ID}" != "debian" ] && [ "${ID}" != "ubuntu" ]);then
exit 77;
fi

PGVER=$(psql -V | awk '{gsub(".[0-9]$","",$3);print $3}')
PGVER=$(psql -V | awk '{gsub(".[0-9]{1,}$","",$3);print $3}')
if [ ${PGVER} -lt 10 ]; then
# skip test
echo "${TestName} test skipped: not compatible with PG <= 10"
Expand Down

0 comments on commit 535874d

Please sign in to comment.