Conditionalize lsof test in collect.sh.

This commit is contained in:
Daniel Nichter
2012-02-14 11:02:28 -07:00
parent 0539775d24
commit 1c57fe8ee2

View File

@@ -73,9 +73,13 @@ else
is "1" "1" "SKIP Can't determine MySQL 5.0 error log"
fi
cmd_ok \
"grep -q 'COMMAND[ ]\+PID[ ]\+USER' $p-lsof" \
"lsof"
if [ "$(which lsof 2>/dev/null)" ]; then
cmd_ok \
"grep -q 'COMMAND[ ]\+PID[ ]\+USER' $p-lsof" \
"lsof"
else
is "1" "1" "SKIP lsof not in PATH"
fi
cmd_ok \
"grep -q 'buf0buf.c' $p-mutex-status1" \