summaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 8db2ce7035c..bcf2a69a5cc 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -60,6 +60,14 @@ function check_dependencies()
MISSING="$MISSING pidof"
fi
+ # check for psutil python package
+ test `uname -s` == "Darwin" || test `uname -s` == "FreeBSD" && {
+ pip show psutil | grep -q psutil >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ MISSING="$MISSING psutil"
+ fi
+ }
+
## If dependencies are missing, warn the user and abort
if [ "x$MISSING" != "x" ]; then
test "x${force}" != "xyes" && echo "Aborting."