You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_procinfo/5-test_procinfo.sh

23 lines
573 B

#!/bin/bash
# Author: Steve Barnes (steve@echo.id.au)
# Athmane Madjoudj <athmanem@gmail.com>
# Christoph Galuschka <christoph.galuschka@chello.at>
t_Log "Running $0 - checking procinfo runs and returns non-zero exit status."
if [ "$centos_ver" -gt "5" ] ; then
t_Log "It seems to be a CentOS $centos_ver system, this test will be disabled -> SKIP"
exit 0
else
if [ $SKIP_QA_HARNESS -eq 1 ]; then
t_Log "Skip, seems to fail on CI ..."
else
PROCINFO=`which procinfo`
$PROCINFO &>/dev/null
t_CheckExitStatus $?
fi
fi