Merge "Simplify requirements check run_command invocation"

This commit is contained in:
Jenkins 2015-03-26 16:07:59 +00:00 committed by Gerrit Code Review
commit 09e9675914

View File

@ -120,7 +120,7 @@ def main():
# build a list of requirements in the proposed change,
# and check them for style violations while doing so
head = run_command("git rev-parse HEAD")[0].strip()
head = run_command("git rev-parse HEAD")[0]
head_reqs = RequirementsList('HEAD')
head_reqs.read_all_requirements(strict=True)
@ -148,7 +148,7 @@ def main():
print err
os.chdir(reqdir)
print "requirements git sha: %s" % run_command(
"git rev-parse HEAD")[0].strip()
"git rev-parse HEAD")[0]
os_reqs = RequirementsList('openstack/requirements')
if branch == 'master' or branch.startswith('feature/'):
include_dev = True