Make run_tests.sh return failure when pep8 returns fail, and fix the pep8 error in /bin/glance-upload
This commit is contained in:
parent
33f909593f
commit
9e4d7c8b0d
|
@ -41,7 +41,7 @@ from glance.client import Client
|
||||||
|
|
||||||
|
|
||||||
def die(msg):
|
def die(msg):
|
||||||
print >>sys.stderr, msg
|
print >> sys.stderr, msg
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,4 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_tests
|
run_tests && pep8 --repeat --show-pep8 --show-source bin/* glance setup.py run_tests.py || exit 1
|
||||||
|
|
||||||
pep8 --repeat --show-pep8 --show-source bin/* glance setup.py run_tests.py
|
|
||||||
|
|
Loading…
Reference in New Issue