mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Conditionalize lsof test in collect.sh.
This commit is contained in:
@@ -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" \
|
||||
|
Reference in New Issue
Block a user