[PATCH] D81782: [lit] Allow for tests to have non-parsed requirements
Casey Carter via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 12:38:15 PDT 2020
CaseyCarter updated this revision to Diff 270826.
CaseyCarter added a comment.
Partially address review comments.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81782/new/
https://reviews.llvm.org/D81782
Files:
llvm/utils/lit/lit/TestRunner.py
Index: llvm/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/utils/lit/lit/TestRunner.py
+++ llvm/utils/lit/lit/TestRunner.py
@@ -1463,9 +1463,9 @@
except ValueError as e:
return lit.Test.Result(Test.UNRESOLVED, str(e))
script = parsed['RUN:'] or []
- test.xfails = parsed['XFAIL:'] or []
- test.requires = parsed['REQUIRES:'] or []
- test.unsupported = parsed['UNSUPPORTED:'] or []
+ test.xfails = test.xfails + (parsed['XFAIL:'] or [])
+ test.requires = test.requires + (parsed['REQUIRES:'] or [])
+ test.unsupported = test.unsupported + (parsed['UNSUPPORTED:'] or [])
if parsed['ALLOW_RETRIES:']:
test.allowed_retries = parsed['ALLOW_RETRIES:'][0]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81782.270826.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200615/02bfeff6/attachment.bin>
More information about the llvm-commits
mailing list