qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 702
blob82838d5e563308cd1e3755c7fd6ee1da2cb10bad
1 #!/bin/sh
2 # PCP QA Test No. 702
3 # Exercise python PMAPI layer - basic live host tests
5 # Copyright (c) 2012-2014 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 . ./common.python
12 status=1 # failure is the default!
13 $sudo rm -f $tmp.* $seq.full
14 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
16 $python -c 'from pcp import pmapi' 2>/dev/null
17 test $? -eq 0 || _notrun 'Python pcp pmapi module is not installed'
19 # real QA test starts here
20 $python $here/src/test_pcp.py >$seq.full 2>&1
21 _check_unittest live $seq.full
22 status=$?
23 exit