Created
June 6, 2014 19:29
-
-
Save ulises/2c478f47a51678fe13c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/status/<runid>') | |
def testy_run_status(runid): | |
toasty_root = "/Users/ulises/development/testy/toasty" | |
print "Checking: " + runid | |
def read_status(): | |
line = "" | |
with io.open(toasty_root + "/runs/" + str(runid), "r") as f: | |
while not summary.findall(line): | |
print "LINE:" + line | |
print summary.findall(line) | |
line = f.readline() | |
yield line | |
return Response(read_status(), mimetype="text/plain") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment