Blame tests/p_procinfo/5-test_procinfo.sh
|
Steve Barnes |
464547 |
#!/bin/bash
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
t_Log "Running $0 - checking procinfo runs and returns non-zero exit status."
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
PROCINFO=`which procinfo`
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
[ -z "${PROCINFO}" ] && { t_log "Failed to find procinfo binary. Cannot continue."; exit $FAIL; }
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
${PROCINFO} &>/dev/null
|
|
Steve Barnes |
464547 |
|
|
Steve Barnes |
464547 |
[ $? -eq 0 ] || { t_log "Procinfo exited with non-zero status. That ain't good..."; exit $FAIL; }
|