Redirect the output from script for kernel tests.
Currently, all the output from the script is going into stdout.
When a build breaks the stderr file is used for telling breakage
reason and a snippet from this file appears in emails. Right now
only the .zip downloading output goes to the stderr that unnecessarly
fills up the file. Hence, redirect all test results to stderr and
supress wget output, so that only useful information gets into email
snippets.
BUG=b:29003489
TEST=Tested locally
Change-Id: I1719ec5993c5819d509e933f543ec3c32260e92e
diff --git a/net/test/run_net_test.sh b/net/test/run_net_test.sh
index a67015b..e41946d 100755
--- a/net/test/run_net_test.sh
+++ b/net/test/run_net_test.sh
@@ -63,7 +63,7 @@
echo "Deleting $COMPRESSED_ROOTFS" >&2
rm -f $COMPRESSED_ROOTFS
echo "Downloading $URL" >&2
- wget $URL
+ wget -nv $URL
echo "Uncompressing $COMPRESSED_ROOTFS" >&2
unxz $COMPRESSED_ROOTFS
fi
@@ -132,4 +132,4 @@
# Start the VM.
exec $KERNEL_BINARY umid=net_test ubda=$(dirname $0)/$ROOTFS \
mem=512M init=/sbin/net_test.sh net_test=$dir/$test \
- net_test_mode=$testmode $netconfig $consolemode
+ net_test_mode=$testmode $netconfig $consolemode >&2