From: Gilles Espinasse Date: Mon, 22 Oct 2012 22:12:15 +0000 (+1100) Subject: test: redirect all output to log file to keep output clean X-Git-Tag: mdadm-3.3-rc1~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45e34015b6f3c9deb4f489095eeedc9343a34b5e;p=thirdparty%2Fmdadm.git test: redirect all output to log file to keep output clean If a test sent anything to stdout, it would not get logged, and would mess up the listing of test status. Signed-off-by: Gilles Espinasse Signed-off-by: NeilBrown --- diff --git a/test b/test index 48b47d94..e3133850 100755 --- a/test +++ b/test @@ -227,7 +227,7 @@ do_test() { # source script in a subshell, so it has access to our # namespace, but cannot change it. echo -ne "$_script... " - if ( set -ex ; . $_script ) 2> $targetdir/log + if ( set -ex ; . $_script ) &> $targetdir/log then echo "succeeded" _fail=0