I added a regression to the file resource. This was caused by two different bugs that I added when I switched the API to use checkapply. I would have caught these issues, except my test cases *also* had a bug! I think I've fixed all three issues now. Lastly, when running on travis, the tests behave very differently! Some of the tests actually fail, and it's not clear why. As a result, we had to disable them! I guess you get what you pay for.
24 lines
468 B
Bash
24 lines
468 B
Bash
# NOTE: boiler plate to run etcd; source with: . etcd.sh; should NOT be +x
|
|
cleanup ()
|
|
{
|
|
echo "cleanup: $1"
|
|
killall etcd || killall -9 etcd || true # kill etcd
|
|
rm -rf /tmp/etcd/
|
|
}
|
|
|
|
trap_with_arg() {
|
|
func="$1"
|
|
shift
|
|
for sig in "$@"
|
|
do
|
|
trap "$func $sig" "$sig"
|
|
done
|
|
}
|
|
|
|
trap_with_arg cleanup INT QUIT TERM EXIT # ERR
|
|
mkdir -p /tmp/etcd/
|
|
cd /tmp/etcd/ >/dev/null # shush the cd operation
|
|
etcd & # start etcd as job # 1
|
|
sleep 1s # let etcd startup
|
|
cd - >/dev/null
|