Home | History | Annotate | Download | only in tools
      1 #!/bin/bash
      2 PRIORITY=20
      3 # PINUM stands for the test cases number of pi test
      4 PINUM=6
      5 num=0
      6 chrt -p -f $PRIORITY $$
      7 TIMEOUT=600
      8 echo "Start watchdogtimer script..."
      9 echo "wait 10 minutes, if pitest hangs, stop the case execution"
     10 while [ $num -lt $PINUM ]
     11 do
     12 sleep $TIMEOUT
     13 killall -9 -q pitest*
     14 echo "Timeout, kill pi test case"
     15 num=`expr $num + 1`
     16 done
     17 
     18