python api: fix syntax error in recent context changes
[pcp.git] / qa / 804
blob9cf4f5b3ac36a7606c4f088decf937ac9a413967
1 #!/bin/sh
2 # PCP QA Test No. 804
3 # Exercise the pcp-vmstat(1) wrapper command.
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 [ -x $PCP_BINADM_DIR/pcp-vmstat ] || _notrun "pcp vmstat wrapper not installed"
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp $tmp.* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
23 args="-z -a $here/archives/pcp-vmstat"
24 pcp $args vmstat 1 4
26 # success, all done
27 status=0
28 exit