python api: fix syntax error in recent context changes
[pcp.git] / qa / 1043
blob9bed5f6f8c6d04c8e4c70d9bcadc705bcd3f57d5
1 #!/bin/sh
2 # PCP QA Test No. 1043
3 # Exercise pmdalinux softirqs no-values edge case.
5 # Copyright (c) 2016 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 [ $PCP_PLATFORM = linux ] || _notrun "Linux interrupts/softirqs testing"
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp $tmp.* $seq.full
20 trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
23 mkdir -p $tmp.root/proc
24 cp -a /proc/stat $tmp.root/proc/stat
26 export LINUX_STATSPATH=$tmp.root
27 pmda=$PCP_PMDAS_DIR/linux/pmda_linux.so,linux_init
29 echo && echo "Checking non-existent softirqs data"
30 pminfo -f -L -K clear -K add,60,$pmda kernel.percpu.softirqs
32 # success, all done
33 status=0
34 exit