summaryrefslogtreecommitdiff
path: root/testdata/ctrl_pipe.tdir/ctrl_pipe.post
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/ctrl_pipe.tdir/ctrl_pipe.post')
-rw-r--r--testdata/ctrl_pipe.tdir/ctrl_pipe.post15
1 files changed, 15 insertions, 0 deletions
diff --git a/testdata/ctrl_pipe.tdir/ctrl_pipe.post b/testdata/ctrl_pipe.tdir/ctrl_pipe.post
new file mode 100644
index 0000000000000..5e3cc6dacc52b
--- /dev/null
+++ b/testdata/ctrl_pipe.tdir/ctrl_pipe.post
@@ -0,0 +1,15 @@
+# #-- 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