mirror of https://github.com/ARMmbed/mbed-os.git
Fixing return status
parent
db1965bc95
commit
e63f64700b
|
@ -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:])
|
||||
|
|
Loading…
Reference in New Issue