Unhide errors from check_uptodate.sh

Displays execution errors instead of hiding them.

Change-Id: I8f723d17dffb96f2aa07e7b584fa124af1441592
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
This commit is contained in:
Sorin Sbarnea 2017-08-30 15:44:33 +01:00
parent 5d333b98a0
commit 236f57e6ae
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,9 @@ if [ ! -e cinder/opts.py ]; then
exit 1
else
mv cinder/opts.py cinder/opts.py.orig
tox -e genopts &> /dev/null
tox -e genopts &> tox-genops.log
if [ $? -ne 0 ]; then
cat tox-genops.log >&2
echo -en "\n\n#################################################"
echo -en "\nERROR: Non-zero exit from generate_cinder_opts.py."
echo -en "\n See output above for details.\n"