Make run_tests.sh return failure when pep8 returns fail, and fix the pep8 error in /bin/glance-upload

This commit is contained in:
jaypipes@gmail.com 2011-01-23 12:18:48 -05:00
parent 33f909593f
commit 9e4d7c8b0d
2 changed files with 2 additions and 4 deletions

View File

@ -41,7 +41,7 @@ from glance.client import Client
def die(msg):
print >>sys.stderr, msg
print >> sys.stderr, msg
sys.exit(1)

View File

@ -71,6 +71,4 @@ then
fi
fi
run_tests
pep8 --repeat --show-pep8 --show-source bin/* glance setup.py run_tests.py
run_tests && pep8 --repeat --show-pep8 --show-source bin/* glance setup.py run_tests.py || exit 1