mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
etcd: implement separate system tests
- add t13_etcd test directory - etcd will be started for the unit tests and each system test - etcd will load fixture DB export if requested by the test - existing tests are reused for etcd testing
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -e /tmp/etcd.pid ]; then
|
||||
echo etcd already running, killing..
|
||||
etcdpid=`cat /tmp/etcd.pid`
|
||||
kill $etcdpid
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
finish()
|
||||
{
|
||||
if [ -n "$etcdpid" ]; then
|
||||
echo terminating etcd
|
||||
kill $etcdpid
|
||||
fi
|
||||
}
|
||||
trap finish INT
|
||||
|
||||
/srv/etcd/etcd --max-request-bytes '1073741824' --data-dir /tmp/etcd-data &
|
||||
echo $! > /tmp/etcd.pid
|
||||
etcdpid=`cat /tmp/etcd.pid`
|
||||
wait $etcdpid
|
||||
echo etcd terminated
|
||||
Reference in New Issue
Block a user