Fix up stderr handling in bench runs.
authorfsgqa <fsgqa>
Sat, 9 Nov 2002 20:13:42 +0000 (20:13 +0000)
committerfsgqa <fsgqa>
Sat, 9 Nov 2002 20:13:42 +0000 (20:13 +0000)
Send stderr to the  $FULL file, not inline with stdout.

bench
common.bonnie
run.bonnie_ops

diff --git a/bench b/bench
index 532e2023d52ed153e51728b22e06cc784fd692d3..31308c41a9f6e11562e89b5b5a1eb943c02baeee 100755 (executable)
--- a/bench
+++ b/bench
@@ -114,7 +114,7 @@ _run_benchmark()
         rm -f $seq $tmp.out
 
         _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"
 
         cd $here
index c730e5efb68dcf75e3973f0a9b4afcf29f29d016..872870e999c255a898f678c25928037fd0d40032 100644 (file)
@@ -12,7 +12,7 @@ run_bonnie()
        rm -fr ./bonnie
        [ $status -ne 0 ] && exit 1
        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
        exit 0
 }
index d059d2ab8596c3ae3cb7aa30cb3afe977f2f05d8..6554c649f01d14f83fb66bab1a3b4123874ef0ca 100755 (executable)
@@ -26,7 +26,7 @@ BONNIE_FILETYPE=${BONNIE_FILETYPE:=regular}
 # [ Note: the "files" can also be "^files:max" and possibly other things ]
 filter_stderr()
 {
-       sed -e 's/^..................../# /g' | awk '{ print } END { print "# }'
+       sed -e 's/^..................../# /g' | awk '{print} END {print "#"}'
 }
 
 #