diff options
author | Karel Zak | 2017-05-30 10:47:06 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-30 11:19:22 +0200 |
commit | d25d4534648720b9cc5197b5c8182559f98b1f3d (patch) | |
tree | 4528ec05b73be3b82cbdb75421753cb833a0d3da /tests/ts/misc | |
parent | tests: make /proc optional (diff) | |
download | kernel-qcow2-util-linux-d25d4534648720b9cc5197b5c8182559f98b1f3d.tar.gz kernel-qcow2-util-linux-d25d4534648720b9cc5197b5c8182559f98b1f3d.tar.xz kernel-qcow2-util-linux-d25d4534648720b9cc5197b5c8182559f98b1f3d.zip |
tests: check for ps --ppid
Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/misc')
-rwxr-xr-x | tests/ts/misc/flock | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ts/misc/flock b/tests/ts/misc/flock index 9a44e155b..cf3ca5357 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" |