3 # Exercise python PMI layer using a real script
5 # Copyright (c) 2012 Red Hat.
9 echo "QA output created by $seq"
13 status
=1 # failure is the default!
14 $sudo rm -f $tmp.
* $seq.full
15 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17 $python -c 'from pcp import pmi' 2>/dev
/null
18 test $?
-eq 0 || _notrun
'Python pcp pmi module is not installed'
23 sed -e 's/value 0\.[0-9][0-9]*$/value DOUBLE/g'
26 # real QA test starts here
27 $python $here/src
/check_import.py
$tmp.pcplog
>$tmp.out
2>&1
30 pmdumplog
-a $tmp.pcplog
2>&1 | filter_dump
33 echo "check_import python script gave non-zero result"