shithub: libvpx

Download patch

ref: 7279d44a4e73c5577440c4ce60868bf211e94c5d
parent: cc5eee12bf37b513120d23d1d472b103ae4c3a1c
author: Tom Finegan <tomfinegan@google.com>
date: Thu May 8 08:06:08 EDT 2014

tools_common.sh: Fix vlog()

Abusing '[] && echo' resulted in the --verbose flag being required to
actually run tests.

Change-Id: I39edaa30a05272928f9f4a4bb8581f91d6fe824b

--- a/test/tools_common.sh
+++ b/test/tools_common.sh
@@ -18,7 +18,9 @@
 devnull='> /dev/null 2>&1'
 
 vlog() {
-  [ "${VPX_TEST_VERBOSE_OUTPUT}" = "yes" ] && echo "$@"
+  if [ "${VPX_TEST_VERBOSE_OUTPUT}" = "yes" ]; then
+    echo "$@"
+  fi
 }
 
 # Sets $VPX_TOOL_TEST to the name specified by positional parameter one.