Skip to content

Commit

Permalink
Fix tests on RHEL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-gvincent committed Jul 16, 2024
1 parent 62e8e57 commit 1ded6a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/start_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ DCI_DB_DIR="$(cd "$(dirname "$0")/.." && pwd)/$DCI_DB_DIR"
# if the database is already running we do not want to run this script
[ ! -z "$DISABLE_DB_START" ] &&exit 0

PLATFORM=$(awk -F'=' '/^ID=/ { print $2 }' /etc/os-release)
VERSION_ID=$(awk -F'=' '/^VERSION_ID=/ { print $2 }' /etc/os-release)

if [[ ( "${PLATFORM//\"}" == rhel || "${PLATFORM//\"}" == centos ) ]] && (( ${VERSION_ID//\"} < 8 )); then
source /opt/rh/rh-postgresql96/enable
fi

# checks if pg_ctl command exists
type "pg_ctl"

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ deps = -r{toxinidir}/requirements.txt
install_command = pip install -U {packages}
setenv =
DCI_SETTINGS_MODULE = tests.settings
TZ = UTC
norecursedirs = .git docs bin scripts
passenv= *
usedevelop = True
Expand Down

0 comments on commit 1ded6a5

Please sign in to comment.