You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_sysstat/20-pidstat-basic.sh

13 lines
252 B

#!/bin/bash
# Author: Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com>
t_Log "Running $0 - pidstat test"
output_file=$(mktemp)
trap "rm -f ${output_file}" EXIT
if ! pidstat 1 1 > ${output_file} 2>&1; then
cat ${output_file}
exit 1
fi