From d25d4534648720b9cc5197b5c8182559f98b1f3d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 May 2017 10:47:06 +0200 Subject: [PATCH] tests: check for ps --ppid Reported-by: Assaf Gordon Signed-off-by: Karel Zak --- tests/ts/misc/flock | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ts/misc/flock b/tests/ts/misc/flock index 9a44e155bc..cf3ca53578 100755 --- a/tests/ts/misc/flock +++ b/tests/ts/misc/flock @@ -22,6 +22,9 @@ ts_check_test_command "$TS_CMD_FLOCK" ts_check_prog "ps" ts_check_prog "timeout" +if ! ps --ppid $$ &>/dev/null; then + ts_skip "no ps --ppid" +fi function do_lock { local opts="$1" -- 2.47.3