Fixing return status

pull/1367/head
Brian Daniels 2015-09-25 14:43:10 -05:00
parent db1965bc95
commit e63f64700b
1 changed files with 8 additions and 2 deletions

View File

@ -50,7 +50,10 @@ def main(arguments):
print("Build POST status", r.status_code, r.reason)
print(r.text)
return r.status_code <= 200
if r.status_code <= 200:
sys.exit(0)
else:
sys.exit(2)
elif args.info_type == 'testRuns':
@ -121,7 +124,10 @@ def main(arguments):
print("testRuns POST status", r.status_code, r.reason)
print(r.text)
return r.status_code <= 200
if r.status_code <= 200:
sys.exit(0)
else:
sys.exit(2)
if __name__ == '__main__':
main(sys.argv[1:])