ctdb-tests: Factor out new local daemons functions ps_ctdbd
[gd/samba-autobuild/.git] / ctdb / tests / simple / 28_zero_eventscripts.sh
index 7c03ae496810b87e2f818162538da32d69d5e3d4..fc31c4a2c121d39191ffaa89f25ab30c7290bf3f 100755 (executable)
@@ -35,11 +35,6 @@ CTDB_EVENT_SCRIPT_DIR="$empty_dir" daemons_start
 
 wait_until_ready
 
-# If this fails to find processes then the tests fails, so look at
-# full command-line so this will work with valgrind.  Note that the
-# output could be generated with pgrep's -a option but it doesn't
-# exist in older versions.
-ps -p $(pgrep -f '\<ctdbd\>' | xargs | sed -e 's| |,|g') -o args ww
+ps_ctdbd
 
-echo
 echo "Good, that seems to work!"