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:
parent
63ebe78fae
commit
45e34015b6
2
test
2
test
|
@ -227,7 +227,7 @@ do_test() {
|
||||||
# source script in a subshell, so it has access to our
|
# source script in a subshell, so it has access to our
|
||||||
# namespace, but cannot change it.
|
# namespace, but cannot change it.
|
||||||
echo -ne "$_script... "
|
echo -ne "$_script... "
|
||||||
if ( set -ex ; . $_script ) 2> $targetdir/log
|
if ( set -ex ; . $_script ) &> $targetdir/log
|
||||||
then
|
then
|
||||||
echo "succeeded"
|
echo "succeeded"
|
||||||
_fail=0
|
_fail=0
|
||||||
|
|
Loading…
Reference in New Issue