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

« back to all changes in this revision

Viewing changes to tests/health-check/test.sh

  • Committer: Leo Arias
  • Date: 2014-11-10 19:28:56 UTC
  • mfrom: (345 touch)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: leo.arias@canonical.com-20141110192856-rgpksx9n9j0b39yl
Merged with the touch branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
procname=$1
 
4
RC=0
 
5
 
 
6
pidline=$(cat /tmp/healthcheck/procmapping.txt | grep $procname:)
 
7
sed -i "/$pidline/d" /tmp/healthcheck/procmapping.txt
 
8
pid=$(echo $pidline | awk -F: '{print $NF}')
 
9
 
 
10
echo "Testing $procname - $pid"
 
11
sudo /tmp/healthcheck/health-check-test-pid.py $pid
 
12
RC=$?
 
13
 
 
14
cp *.json /tmp/results
 
15
exit $RC