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 BareosBot committed Apr 15, 2024
1 parent 4757f3f commit 475b131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemtests/tests/py3plug-fd-postgresql/testrunner-debian
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 475b131

Please sign in to comment.