From 63dda78e61ceecb64a25ecc9475d5605738fddc2 Mon Sep 17 00:00:00 2001 From: mhutti1 Date: Mon, 3 Jul 2017 21:41:22 +0100 Subject: [PATCH] Flush prints to stop travis timeout --- testdroid.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testdroid.py b/testdroid.py index a46659b98..478e6fdcc 100755 --- a/testdroid.py +++ b/testdroid.py @@ -10,6 +10,7 @@ if os.environ.get('BITBAR_API_KEY') == None: sys.exit(0) else: print "Running tests" + sys.stdout.flush() runID = os.environ['TRAVIS_BUILD_NUMBER'] apiKey = os.environ['BITBAR_API_KEY'] @@ -27,5 +28,6 @@ for x in range(0, 50): raise AssertionError("Success ratio only: {}".format(ratio)) else: print "Waiting for results" + sys.stdout.flush() time.sleep(30) raise TimeoutError("Test not found/complete")