debian/tests/test: Tidy /tmp/pgpass?.
This commit is contained in:
parent
00407a004a
commit
72fbeb4194
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
patroni (1.4.2-2) UNRELEASED; urgency=medium
|
||||
|
||||
*
|
||||
[ Christoph Berg ]
|
||||
* debian/tests: Tidy /tmp/pgpass?.
|
||||
|
||||
-- Debian PostgreSQL Maintainers <pkg-postgresql-public@lists.alioth.debian.org> Sat, 03 Feb 2018 14:09:20 +0100
|
||||
|
||||
|
|
6
debian/tests/acceptance
vendored
6
debian/tests/acceptance
vendored
|
@ -7,7 +7,7 @@ export LANG=C.UTF-8
|
|||
|
||||
if [ $(id -u) -eq 0 ]
|
||||
then
|
||||
# required so that the postgres user can create files
|
||||
# required so that the postgres user can create .coverage* and features/output/
|
||||
chmod 777 .
|
||||
chmod 777 features
|
||||
SU='su postgres -p -c'
|
||||
|
@ -15,6 +15,10 @@ else
|
|||
SU='bash -c'
|
||||
fi
|
||||
|
||||
# clean up afterwards
|
||||
trap 'rm -f /tmp/pgpass?' 0 2 3 15
|
||||
|
||||
set -x
|
||||
for PG_VERSION in /usr/lib/postgresql/*; do
|
||||
$SU "PATH=/usr/lib/postgresql/$(basename ${PG_VERSION})/bin:$PATH behave"
|
||||
done
|
||||
|
|
3
debian/tests/test
vendored
3
debian/tests/test
vendored
|
@ -5,4 +5,7 @@ set -e
|
|||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
|
||||
# clean up afterwards
|
||||
trap 'rm -f /tmp/pgpass?' 0 2 3 15
|
||||
|
||||
python3 setup.py test
|
||||
|
|
Loading…
Reference in a new issue