Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[run_tests.sh] A right way for obtaining of BINDIR and PG_CONFIG is used #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[run_tests.sh] A right way for obtaining of BINDIR and PG_CONFIG is used
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.
  • Loading branch information
dmitry-lipetsk committed Feb 27, 2025
commit 103bcd2e6734a14ba8b8b43fb4899821f5b2e18c
4 changes: 2 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ time coverage run -a -m pytest -l -v -n 4 -k "TestgresTests"

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


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


Expand Down