Ensure no etcd server is running before acceptance tests
Otherwise acceptance tests can't spin up new etcd server which use same port. Closes: #1027707
This commit is contained in:
parent
46ccaa2b8e
commit
b4db543273
7
debian/tests/acceptance
vendored
7
debian/tests/acceptance
vendored
|
@ -44,6 +44,13 @@ case $DEB_HOST_ARCH in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# ensure no etcd server is running.
|
||||||
|
if [ $(id -u) -eq 0 ]
|
||||||
|
then
|
||||||
|
service etcd stop
|
||||||
|
service etcd status || true
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
|
for PG_VERSION in $(ls -1r /usr/lib/postgresql/); do
|
||||||
echo "### PostgreSQL $PG_VERSION acceptance-$DCS $@ ###"
|
echo "### PostgreSQL $PG_VERSION acceptance-$DCS $@ ###"
|
||||||
|
|
4
debian/tests/control
vendored
4
debian/tests/control
vendored
|
@ -22,7 +22,7 @@ Depends:
|
||||||
python3-etcd (>= 0.4.3),
|
python3-etcd (>= 0.4.3),
|
||||||
@,
|
@,
|
||||||
Test-Command: debian/tests/acceptance etcd features/basic_replication.feature
|
Test-Command: debian/tests/acceptance etcd features/basic_replication.feature
|
||||||
Restrictions: allow-stderr
|
Restrictions: needs-root, allow-stderr
|
||||||
|
|
||||||
Features: test-name=acceptance-etcd
|
Features: test-name=acceptance-etcd
|
||||||
Depends:
|
Depends:
|
||||||
|
@ -34,7 +34,7 @@ Depends:
|
||||||
python3-etcd (>= 0.4.3),
|
python3-etcd (>= 0.4.3),
|
||||||
@,
|
@,
|
||||||
Test-Command: debian/tests/acceptance etcd
|
Test-Command: debian/tests/acceptance etcd
|
||||||
Restrictions: allow-stderr, flaky
|
Restrictions: needs-root, allow-stderr, flaky
|
||||||
|
|
||||||
# consul
|
# consul
|
||||||
Features: test-name=acceptance-consul
|
Features: test-name=acceptance-consul
|
||||||
|
|
Loading…
Reference in a new issue