ctdb-tests: Add ps output filter for freebsd
authorAmitay Isaacs <amitay@gmail.com>
Tue, 10 Jul 2018 08:54:11 +0000 (18:54 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 28 Jul 2018 01:50:10 +0000 (03:50 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13520

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/cunit/run_proc_001.sh

index c6aee3721fae95f17159dd1e3dbd8dd1c290f49d..ac0c0da6ca435b553af2efcc5059d270ea6eeda5 100755 (executable)
@@ -127,7 +127,8 @@ unit_test run_proc_test 1 -1 "$prog"
 result_filter ()
 {
        _header="  *PID  *TTY  *TIME  *CMD"
-       sed -e "s|^${_header}|HEADER|"
+       _header2=" *PID  *TT  *STAT  *TIME  *COMMAND"
+       sed -e "s|^${_header}|HEADER|" -e "s|^${_header2}|HEADER|"
 }
 
 pid=$(cat "$pidfile")