summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGilles Espinasse <g.esp@free.fr>2012-10-23 09:12:15 +1100
committerNeilBrown <neilb@suse.de>2012-10-23 09:12:15 +1100
commit45e34015b6f3c9deb4f489095eeedc9343a34b5e (patch)
tree622f28f4ac8532d368c8d13cb9c31657ff5d3a46 /test
parent63ebe78faefc47ce8612b619bb25b3438cf8378b (diff)
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>
Diffstat (limited to 'test')
-rwxr-xr-xtest2
1 files changed, 1 insertions, 1 deletions
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