Commit d1f466cc authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Added more output on timeout failures to test runner.

Review URL: http://codereview.chromium.org/119112

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2100 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 250081d6
...@@ -164,6 +164,8 @@ class SimpleProgressIndicator(ProgressIndicator): ...@@ -164,6 +164,8 @@ class SimpleProgressIndicator(ProgressIndicator):
print "Command: %s" % EscapeCommand(failed.command) print "Command: %s" % EscapeCommand(failed.command)
if failed.HasCrashed(): if failed.HasCrashed():
print "--- CRASHED ---" print "--- CRASHED ---"
if failed.HasTimedOut():
print "--- TIMEOUT ---"
if len(self.failed) == 0: if len(self.failed) == 0:
print "===" print "==="
print "=== All tests succeeded" print "=== All tests succeeded"
...@@ -207,6 +209,9 @@ class DotsProgressIndicator(SimpleProgressIndicator): ...@@ -207,6 +209,9 @@ class DotsProgressIndicator(SimpleProgressIndicator):
if output.HasCrashed(): if output.HasCrashed():
sys.stdout.write('C') sys.stdout.write('C')
sys.stdout.flush() sys.stdout.flush()
elif output.HasTimedOut():
sys.stdout.write('T')
sys.stdout.flush()
else: else:
sys.stdout.write('F') sys.stdout.write('F')
sys.stdout.flush() sys.stdout.flush()
...@@ -245,6 +250,8 @@ class CompactProgressIndicator(ProgressIndicator): ...@@ -245,6 +250,8 @@ class CompactProgressIndicator(ProgressIndicator):
print "Command: %s" % EscapeCommand(output.command) print "Command: %s" % EscapeCommand(output.command)
if output.HasCrashed(): if output.HasCrashed():
print "--- CRASHED ---" print "--- CRASHED ---"
if output.HasTimedOut():
print "--- TIMEOUT ---"
def Truncate(self, str, length): def Truncate(self, str, length):
if length and (len(str) > (length - 3)): if length and (len(str) > (length - 3)):
...@@ -381,6 +388,9 @@ class TestOutput(object): ...@@ -381,6 +388,9 @@ class TestOutput(object):
return self.output.exit_code < 0 and \ return self.output.exit_code < 0 and \
self.output.exit_code != -signal.SIGABRT self.output.exit_code != -signal.SIGABRT
def HasTimedOut(self):
return self.output.timed_out;
def HasFailed(self): def HasFailed(self):
execution_failed = self.test.DidFail(self.output) execution_failed = self.test.DidFail(self.output)
if self.test.IsNegative(): if self.test.IsNegative():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment