Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9911ed0

Browse files
[run_tests.sh] A right way for obtaining of BINDIR and PG_CONFIG is used (#196)
A problem was detected in container with Ubuntu 24.04 tests works with "/usr/bin/pg_config" but real pg_config is "/usr/lib/postgresql/17/bin/pg_config" To resovle this problem we will call "pg_config --bindir" and use it result for BINDIR and PG_CONFIG.
1 parent 0eeb705 commit 9911ed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run_tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ time coverage run -a -m pytest -l -v -n 4 -k "TestgresTests"
4343

4444
# run tests (PG_BIN)
4545
time \
46-
PG_BIN=$(dirname $(which pg_config)) \
46+
PG_BIN=$(pg_config --bindir) \
4747
coverage run -a -m pytest -l -v -n 4 -k "TestgresTests"
4848

4949

5050
# run tests (PG_CONFIG)
5151
time \
52-
PG_CONFIG=$(which pg_config) \
52+
PG_CONFIG=$(pg_config --bindir)/pg_config \
5353
coverage run -a -m pytest -l -v -n 4 -k "TestgresTests"
5454

5555

0 commit comments

Comments
 (0)