From 9e4d7c8b0da55767be6f38c9bfe2032b566518b4 Mon Sep 17 00:00:00 2001 From: "jaypipes@gmail.com" <> Date: Sun, 23 Jan 2011 12:18:48 -0500 Subject: [PATCH] Make run_tests.sh return failure when pep8 returns fail, and fix the pep8 error in /bin/glance-upload --- bin/glance-upload | 2 +- run_tests.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/glance-upload b/bin/glance-upload index dd5dd35f44..de202580fa 100755 --- a/bin/glance-upload +++ b/bin/glance-upload @@ -41,7 +41,7 @@ from glance.client import Client def die(msg): - print >>sys.stderr, msg + print >> sys.stderr, msg sys.exit(1) diff --git a/run_tests.sh b/run_tests.sh index 32deec831d..bc0cda38ce 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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