Drop unused condition check
[pcp.git] / qa / 737
blob56c2361741119a4fe427ef5f0667ce1e3101c8c4
1 #!/bin/sh
2 # PCP QA Test No. 737
3 # Exercise time interfaces in python PMAPI wrapper module.
5 # Copyright (c) Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
10 . ./common.check
11 . ./common.setup
12 [ -f common.python ] || _notrun "Testsuite built without python support"
14 . ./common.python
15 $python -c "from pcp import pmapi" >/dev/null 2>&1
16 [ $? -eq 0 ] || _notrun "python pcp pmapi module not installed"
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp.* $seq.full
20 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 _filter_utc()
24 sed -e 's/UTC+0/UTC/g' -e 's/UTC-0/UTC/g'
27 # real QA test starts here
28 $python src/test_pcp_time.py | _filter_utc
30 # success, all done
31 status=0
32 exit