summaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2020-12-16 14:17:14 +0100
committerGitHub <noreply@github.com>2020-12-16 18:47:14 +0530
commit222b92d951a8e6aef59a9c8f4170bc72a6dddb82 (patch)
tree172bcc2abf9b8e7a10a636364b1100e26a8e1911 /run-tests.sh
parent5ab07676a1c0d56710d5201643d0ea03ef378b7f (diff)
downloadglusterfs-222b92d951a8e6aef59a9c8f4170bc72a6dddb82.tar.gz
glusterfs-222b92d951a8e6aef59a9c8f4170bc72a6dddb82.tar.xz
glusterfs-222b92d951a8e6aef59a9c8f4170bc72a6dddb82.zip
run-tests.sh: check for killall (#1920)
Inspired by getting bitten by a misbehaving run-tests.sh on a fresly created VM which lacked killall(1). Change-Id: I810e3e9e6c2947829011f7d15009598390408f7b Updates: #1000 Signed-off-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
index e2a1655d8e..f60c9c1b69 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -170,6 +170,12 @@ function check_dependencies()
MISSING="$MISSING netstat"
fi
+ # Check for killall
+ env killall --version > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ MISSING="$MISSING killall"
+ fi
+
# check for psutil python package
test `uname -s` == "Darwin" || test `uname -s` == "FreeBSD" && {
pip show psutil | grep -q psutil >/dev/null 2>&1