Show nailgun log on UI tests fail

This will allow us to debug cryptic errors with tasks hanging

Change-Id: I5da4e1652b7d034055d49442203077058355369a
This commit is contained in:
Vitaly Kramskikh 2015-12-22 12:18:49 +03:00
parent 62f8c8be2e
commit b9d8e10a2e
1 changed files with 6 additions and 5 deletions

View File

@ -300,15 +300,16 @@ function run_ui_func_tests {
SERVER_PORT=$NAILGUN_PORT \
ARTIFACTS=$artifacts \
${GULP} functional-tests --suites=$testcase
if [ $? -ne 0 ]; then
result=1
break
fi
${GULP} functional-tests --suites=$testcase || result=1
if [ $no_nailgun_start -ne 1 ]; then
kill_server $NAILGUN_PORT
fi
if [ $result -ne 0 ]; then
cat $server_log
break
fi
done
rm $server_log