From 7279d44a4e73c5577440c4ce60868bf211e94c5d Mon Sep 17 00:00:00 2001 From: Tom Finegan Date: Thu, 8 May 2014 12:06:08 -0700 Subject: [PATCH] tools_common.sh: Fix vlog() Abusing '[] && echo' resulted in the --verbose flag being required to actually run tests. Change-Id: I39edaa30a05272928f9f4a4bb8581f91d6fe824b --- test/tools_common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tools_common.sh b/test/tools_common.sh index 30f0faea9..9c10d48f0 100755 --- a/test/tools_common.sh +++ b/test/tools_common.sh @@ -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.