Show exact UI build errors when running UI tests
Change-Id: I4862efb2e537ab07cf6baba2f0f80c7d2ede56b6
This commit is contained in:
parent
2c7bb03799
commit
31dd6ad683
@ -147,9 +147,10 @@ function run_ui_tests {
|
|||||||
echo -n "Compressing UI... "
|
echo -n "Compressing UI... "
|
||||||
compressed_static_dir=/tmp/static_compressed
|
compressed_static_dir=/tmp/static_compressed
|
||||||
rm -rf $compressed_static_dir && mkdir -p $compressed_static_dir
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed!"
|
echo "Failed!"
|
||||||
|
echo "$grunt_output"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
Loading…
Reference in New Issue
Block a user