mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix up stderr handling in bench runs.
Send stderr to the $FULL file, not inline with stdout.
This commit is contained in:
@@ -114,7 +114,7 @@ _run_benchmark()
|
|||||||
rm -f $seq $tmp.out
|
rm -f $seq $tmp.out
|
||||||
|
|
||||||
_log " *** bench [$seq]"
|
_log " *** bench [$seq]"
|
||||||
$here/src/runas -u $uid -g $gid $here/run.$bench > $tmp.out
|
$here/src/runas -u $uid -g $gid $here/run.$bench >$tmp.out 2>>$FULL
|
||||||
[ $? -eq 0 ] || _fail " !!! $bench pass $pass failed"
|
[ $? -eq 0 ] || _fail " !!! $bench pass $pass failed"
|
||||||
|
|
||||||
cd $here
|
cd $here
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ run_bonnie()
|
|||||||
rm -fr ./bonnie
|
rm -fr ./bonnie
|
||||||
[ $status -ne 0 ] && exit 1
|
[ $status -ne 0 ] && exit 1
|
||||||
filter_stdout < $tmp/bonnie.stdout
|
filter_stdout < $tmp/bonnie.stdout
|
||||||
filter_stderr < $tmp/bonnie.stderr
|
filter_stderr < $tmp/bonnie.stderr 1>&2
|
||||||
rm -f $tmp/bonnie.stdout $tmp/bonnie.stderr
|
rm -f $tmp/bonnie.stdout $tmp/bonnie.stderr
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ BONNIE_FILETYPE=${BONNIE_FILETYPE:=regular}
|
|||||||
# [ Note: the "files" can also be "^files:max" and possibly other things ]
|
# [ Note: the "files" can also be "^files:max" and possibly other things ]
|
||||||
filter_stderr()
|
filter_stderr()
|
||||||
{
|
{
|
||||||
sed -e 's/^..................../# /g' | awk '{ print } END { print "# }'
|
sed -e 's/^..................../# /g' | awk '{print} END {print "#"}'
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user