Fix up stderr handling in bench runs.

Send stderr to the  $FULL file, not inline with stdout.
This commit is contained in:
fsgqa
2002-11-09 20:13:42 +00:00
parent d56adf280e
commit 4e06cacd29
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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 "#"}'
} }
# #