Skip to content

Instantly share code, notes, and snippets.

@ulises
Created June 6, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulises/2c478f47a51678fe13c9 to your computer and use it in GitHub Desktop.
Save ulises/2c478f47a51678fe13c9 to your computer and use it in GitHub Desktop.
@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