bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_procinfo/5-test_procinfo.sh

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