From: Tomas Krizek Date: Tue, 26 Feb 2019 16:37:16 +0000 (+0100) Subject: ci/travis.py: fix script to handle all states properly X-Git-Tag: v4.0.0~24^2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9706cd8e04ac93001fc76d9ead0a09eaf5e9de5a;p=thirdparty%2Fknot-resolver.git ci/travis.py: fix script to handle all states properly --- diff --git a/ci/travis.py b/ci/travis.py index f0909ae15..74b22b84e 100755 --- a/ci/travis.py +++ b/ci/travis.py @@ -36,10 +36,10 @@ while time.time() < end_time: except KeyError: pass - if state == "errored": - exit("Travis CI Result: ERRORED!") - elif state == "passed": + if state == "passed": exit("Travis CI Result: PASSED!", code=0) + else: + exit("Travis CI Result: {}!".format(state.upper())) else: exit("API Response Code: {code}".format(response.status_code), code=2) time.sleep(POLL_DELAY)