From 31dd6ad68337c133216306c40281de4fdf85b763 Mon Sep 17 00:00:00 2001 From: Vitaly Kramskikh Date: Fri, 24 Jan 2014 00:20:38 +0400 Subject: [PATCH] Show exact UI build errors when running UI tests Change-Id: I4862efb2e537ab07cf6baba2f0f80c7d2ede56b6 --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 8b1ef1addd..1af3bc28b9 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -147,9 +147,10 @@ function run_ui_tests { echo -n "Compressing UI... " compressed_static_dir=/tmp/static_compressed rm -rf $compressed_static_dir && mkdir -p $compressed_static_dir - grunt build --static-dir=$compressed_static_dir > /dev/null + grunt_output=$(grunt build --static-dir=$compressed_static_dir 2>&1) if [ $? -ne 0 ]; then echo "Failed!" + echo "$grunt_output" exit 1 fi echo "Done"