qa: rework python-not-configured checks for tests
[pcp.git] / qa / 979
blobfbf5ba333c2f1d4e8394cf09e29a4d82819cbc7c
1 #!/bin/sh
2 # PCP QA Test No. 979
3 # Basic live mode validation of the Python pmcc module
4 # (pmcc -> Performance Metrics Convenience Classes)
6 # Copyright (c) 2014 Red Hat.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 . ./common.python
14 status=1 # failure is the default!
15 $sudo rm -rf $tmp.* $seq.full
16 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
18 $python -c "from pcp import pmcc" >/dev/null 2>&1
19 [ $? -eq 0 ] || _notrun "python pcp pmcc module not installed"
21 # real QA test starts here
22 $python $here/src/test_pmcc.py -t 0.1 -s 2 >$seq.full 2>&1
23 _check_unittest live $seq.full
24 status=$?
25 exit