2
0
Fork 0

[tests] Hide backtrace on stderr for failed tests

This commit is contained in:
Stefan Bühler 2010-10-05 14:37:05 +02:00
parent 82a9fa3ff2
commit 9b554dc931
1 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,9 @@ var.vhosts = var.vhosts + [ "%s" : ${
print >> Env.log, "Test %s failed:" % (self.name)
print >> Env.log, traceback.format_exc(10)
else:
print >> sys.stderr, "Test %s failed:" % (self.name)
print >> sys.stderr, traceback.format_exc(10)
print >> sys.stderr, "Test %s failed: %s" % (self.name, e)
print >> Env.log, "Test %s failed:" % (self.name)
print >> Env.log, traceback.format_exc(10)
print >> Env.log, "[Done] Running test %s [result=%s]" % (self.name, failed and "Failed" or "Succeeded")
self._test_failed = failed and not self.todo
return not failed