unbound/testdata/ctrl_pipe.tdir/ctrl_pipe.post
Wouter Wijngaards 5165e14802 tests in tdir format.
git-svn-id: file:///svn/unbound/trunk@4264 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-07-06 13:27:30 +00:00

16 lines
459 B
Plaintext

# #-- ctrl_pipe.post --#
# source the master var file when it's there
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
# source the test var file when it's there
[ -f .tpkg.var.test ] && source .tpkg.var.test
#
# do your teardown here
. ../common.sh
kill_pid $FWD_PID
# it was stopped with unbound-control (if the test succeeded)
kill $UNBOUND_PID >/dev/null 2>&1
kill $UNBOUND_PID >/dev/null 2>&1
rm -f $CONTROL_PATH/controlpipe.$CONTROL_PID
exit 0