From: Wlodek Wencel Date: Wed, 28 Jun 2023 09:19:15 +0000 (+0200) Subject: [#2950] fix pgsql 15 setup for unit tests X-Git-Tag: Kea-2.4.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9517e1712d07684d8a3ae89ecf996f682f551ed;p=thirdparty%2Fkea.git [#2950] fix pgsql 15 setup for unit tests --- diff --git a/hammer.py b/hammer.py index ff8c5e9b67..59e971f4dd 100755 --- a/hammer.py +++ b/hammer.py @@ -1498,6 +1498,16 @@ def _configure_pgsql(system, features, revision): cmd += 'EOF\n"' execute(cmd, cwd='/tmp') + if system == 'fedora' and int(revision) >= 38 or \ + system == 'debian' and int(revision) >= 12 or \ + system == 'alpine' and float(revision) >= 3.17: + #TODO it needs detection of pgsql version, and apply this only for postgres >= 15 + cmd = """bash -c \"cat <