]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci/travis.py: fix script to handle all states properly
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 26 Feb 2019 16:37:16 +0000 (17:37 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:43:38 +0000 (10:43 +0100)
ci/travis.py

index f0909ae157aee3b4211fdf5305f6200522850c22..74b22b84e3311461854235119eeeea383f88d431 100755 (executable)
@@ -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)