bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/bash
# Author: Steve Barnes (steve@echo.id.au)

t_Log "Running $0 - checking procinfo runs and returns non-zero exit status."

PROCINFO=`which procinfo`

[ "$PROCINFO" ] || { t_log "Failed to find procinfo binary. Cannot continue."; exit $FAIL; }

$PROCINFO &>/dev/null

[ $? -eq 0 ] || { t_log "Procinfo exited with non-zero status. That ain't good..."; exit $FAIL; }