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 <g.esp@free.fr>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Gilles Espinasse 2012-10-23 09:12:15 +11:00 committed by NeilBrown
parent 63ebe78fae
commit 45e34015b6
1 changed files with 1 additions and 1 deletions

2
test
View File

@ -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