This revision was automatically updated to reflect the committed changes. JDevlieghere marked an inline comment as done. Closed by commit rL372914: [lit] Do a better job at parsing unsupported tests. (authored by JDevlieghere, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D68039?vs=221806&id=221819#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68039/new/ https://reviews.llvm.org/D68039 Files: lldb/trunk/lit/Suite/lldbtest.py Index: lldb/trunk/lit/Suite/lldbtest.py =================================================================== --- lldb/trunk/lit/Suite/lldbtest.py +++ lldb/trunk/lit/Suite/lldbtest.py @@ -102,6 +102,11 @@ if 'XPASS:' in out or 'XPASS:' in err: return lit.Test.XPASS, out + err + has_unsupported_tests = 'UNSUPPORTED:' in out or 'UNSUPPORTED:' in err + has_passing_tests = 'PASS:' in out or 'PASS:' in err + if has_unsupported_tests and not has_passing_tests: + return lit.Test.UNSUPPORTED, out + err + passing_test_line = 'RESULT: PASSED' if passing_test_line not in out and passing_test_line not in err: msg = ('Unable to find %r in dotest output (exit code %d):\n\n%s%s'
Index: lldb/trunk/lit/Suite/lldbtest.py =================================================================== --- lldb/trunk/lit/Suite/lldbtest.py +++ lldb/trunk/lit/Suite/lldbtest.py @@ -102,6 +102,11 @@ if 'XPASS:' in out or 'XPASS:' in err: return lit.Test.XPASS, out + err + has_unsupported_tests = 'UNSUPPORTED:' in out or 'UNSUPPORTED:' in err + has_passing_tests = 'PASS:' in out or 'PASS:' in err + if has_unsupported_tests and not has_passing_tests: + return lit.Test.UNSUPPORTED, out + err + passing_test_line = 'RESULT: PASSED' if passing_test_line not in out and passing_test_line not in err: msg = ('Unable to find %r in dotest output (exit code %d):\n\n%s%s'
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits