~fginther/ubuntu-test-cases/document-rtm-mp-testing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

procname=$1
RC=0

pidline=$(cat /tmp/healthcheck/procmapping.txt | grep $procname:)
sed -i "/$pidline/d" /tmp/healthcheck/procmapping.txt
pid=$(echo $pidline | awk -F: '{print $NF}')

echo "Testing $procname - $pid"
sudo /tmp/healthcheck/health-check-test-pid.py $pid
RC=$?

cp *.json /tmp/results
exit $RC