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