#!/bin/sh
# PCP QA Test No. 1207
# Exercise pcp-dstat issue with many disks (RH BZ #1779419).
#
# Copyright (c) 2019 Red Hat.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

test -x $PCP_BINADM_DIR/pcp-dstat || _notrun "No pcp-dstat(1) installed"

_cleanup()
{
    cd $here
    $sudo rm -rf $tmp $tmp.*
}

status=1	# failure is the default!
$sudo rm -rf $tmp $tmp.* $seq.full
trap "_cleanup; exit \$status" 0 1 2 3 15

# real QA test starts here
pcp --archive archives/dstat-disks dstat --disk --nocolor
status=$?
exit
