#!/bin/sh . "${TEST_SCRIPTS_DIR}/unit.sh" pidfile="${CTDB_TEST_TMP_DIR}/sock_daemon_test.pid.$$" sockpath="${CTDB_TEST_TMP_DIR}/sock_daemon_test.sock.$$" remove_files () { rm -f "$pidfile" rm -f "$sockpath" } test_cleanup remove_files result_filter () { _pid="[0-9][0-9]*" sed -e "s|pid=${_pid}|pid=PID|" \ -e "s|PID ${_pid}|PID PID|" } ok <