3 # Exercise fix for hanging-pmcd-by-drip-feeding-requests
5 # Copyright (c) 2013 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # secure/* scripts all use python, check its installed
12 # otherwise this test fails (./secure/* not available)
18 status
=1 # failure is the default!
19 $sudo rm -rf $tmp.
* $seq.full
20 trap "cleanup; exit \$status" 0 1 2 3 15
26 [ $ppid -eq 0 ] ||
(( kill $ppid >/dev
/null
2>&1 ) &)
32 pmprobe
-h $host -v hinv.ncpu |
tee -a $here/$seq.full |
awk '{ print $3 }'
36 # real QA test starts here
39 echo "Initial CPU count: $ncpu" > $here/$seq.full
40 for hang_test
in hang-
*
42 echo "$hang_test checking: " |
tee -a $here/$seq.full
43 python
$hang_test $host >$tmp.out
2>&1 &
47 while [ $n -lt $count ]
50 echo "Fetched CPU count: $ncpunow" >> $here/$seq.full
51 if [ $ncpunow != $ncpu ]
56 echo "[$n] check data matched" |
tee -a $here/$seq.full
60 ( kill $ppid >/dev
/null
2>&1 ) &
63 echo "$hang_test complete" |
tee -a $here/$seq.full
64 echo "$hang_test output " >> $here/$seq.full
65 cat $tmp.out
>> $here/$seq.full
66 [ $sts -eq 0 ] ||
exit