Page MenuHomePhabricator

No OneTemporary

File Metadata

Created
Fri, Jan 24, 4:27 PM
diff --git a/lldb/test/API/lldbtest.py b/lldb/test/API/lldbtest.py
index 349a67f..864d5ea 100644
--- a/lldb/test/API/lldbtest.py
+++ b/lldb/test/API/lldbtest.py
@@ -88,0 +89 @@ class LLDBTest(TestFormat):
+ timeoutInfo = None
@@ -95,2 +96,16 @@ class LLDBTest(TestFormat):
- return (lit.Test.TIMEOUT, 'Reached timeout of {} seconds'.format(
- litConfig.maxIndividualTestTime))
+ timeoutInfo = 'Reached timeout of {} seconds'.format(
+ litConfig.maxIndividualTestTime)
+
+ output = """Script:\n--\n%s\n--\nExit Code: %d\n""" % (
+ ' '.join(cmd), exitCode)
+ if timeoutInfo is not None:
+ output += """Timeout: %s\n""" % (timeoutInfo,)
+ output += "\n"
+
+ if out:
+ output += """Command Output (stdout):\n--\n%s\n--\n""" % (out,)
+ if err:
+ output += """Command Output (stderr):\n--\n%s\n--\n""" % (err,)
+
+ if timeoutInfo:
+ return lit.Test.TIMEOUT, output
@@ -102 +117 @@ class LLDBTest(TestFormat):
- return lit.Test.FAIL, out + err
+ return lit.Test.FAIL, output
@@ -105 +120 @@ class LLDBTest(TestFormat):
- return lit.Test.XPASS, out + err
+ return lit.Test.XPASS, output
@@ -110 +125 @@ class LLDBTest(TestFormat):
- return lit.Test.UNSUPPORTED, out + err
+ return lit.Test.UNSUPPORTED, output
@@ -114,3 +129 @@ class LLDBTest(TestFormat):
- msg = ('Unable to find %r in dotest output (exit code %d):\n\n%s%s'
- % (passing_test_line, exitCode, out, err))
- return lit.Test.UNRESOLVED, msg
+ return lit.Test.UNRESOLVED, output
@@ -118 +131 @@ class LLDBTest(TestFormat):
- return lit.Test.PASS, ''
+ return lit.Test.PASS, output

Event Timeline