]> granicus.if.org Git - libvpx/commitdiff
tools_common.sh: Fix vlog()
authorTom Finegan <tomfinegan@google.com>
Thu, 8 May 2014 19:06:08 +0000 (12:06 -0700)
committerTom Finegan <tomfinegan@google.com>
Thu, 8 May 2014 19:06:08 +0000 (12:06 -0700)
Abusing '[] && echo' resulted in the --verbose flag being required to
actually run tests.

Change-Id: I39edaa30a05272928f9f4a4bb8581f91d6fe824b

test/tools_common.sh

index 30f0faea9c58c0c23ff3f9e2f61df83ba7f941f6..9c10d48f0db124e58a18f1949fe9ff21dd537eab 100755 (executable)
@@ -18,7 +18,9 @@ set -e
 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.