mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Don't print errors in data files; let the general -output file catch them. Print TS lines before data. Try to find sysctl manually. Add _pidof() to alt_cmds.sh.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TESTS=19
|
||||
TESTS=20
|
||||
|
||||
TMPFILE="$TEST_TMPDIR/parse-opts-output"
|
||||
TMPDIR="$TEST_TMPDIR"
|
||||
@@ -108,6 +108,20 @@ cmd_ok \
|
||||
local iters=$(cat $p-df | grep -c '^TS ')
|
||||
is "$iters" "1" "1 iteration/1s run time"
|
||||
|
||||
empty_files=0
|
||||
for file in $p-*; do
|
||||
if ! [ -s $file ]; then
|
||||
empty_files=1
|
||||
break
|
||||
fi
|
||||
if [ -z "$(grep -v '^TS ' --max-count 1 $file)" ]; then
|
||||
empty_files=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
is "$empty_files" "0" "No empty files"
|
||||
|
||||
# ###########################################################################
|
||||
# Try longer run time.
|
||||
# ###########################################################################
|
||||
|
Reference in New Issue
Block a user