autotest: mark stdout unbuffered

this makes the logs easier to read
This commit is contained in:
Andrew Tridgell 2011-11-26 14:44:07 +11:00 committed by Pat Hickey
parent 4877892d6e
commit 5fd04e0c23
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ import pexpect, os, util, sys, shutil
import arducopter, arduplane
import optparse, fnmatch, time, glob, traceback
os.environ['PYTHONUNBUFFERED'] = '1'
os.putenv('TMPDIR', util.reltopdir('tmp'))
def get_default_params(atype):
@ -241,7 +243,7 @@ def run_tests(steps):
print(">>>> FAILED STEP: %s at %s (%s)" % (step, time.asctime(), msg))
traceback.print_exc(file=sys.stdout)
results.add(step, '<span class="failed-text">FAILED</span>', time.time() - t1)
pass
continue
results.add(step, '<span class="passed-text">PASSED</span>', time.time() - t1)
print(">>>> PASSED STEP: %s at %s" % (step, time.asctime()))
if not passed: