For example, I need this lately in my CI config:
LIT_XFAIL_NOT='libomptarget :: nvptx64-nvidia-cuda :: unified_shared_memory/api.c'
That test specifies an XFAIL directive, but I get an XPASS result.
Paths
| Differential D106022
[lit] Add --xfail-not/LIT_XFAIL_NOT ClosedPublic Authored by jdenny on Jul 14 2021, 3:34 PM.
Details Summary For example, I need this lately in my CI config: LIT_XFAIL_NOT='libomptarget :: nvptx64-nvidia-cuda :: unified_shared_memory/api.c' That test specifies an XFAIL directive, but I get an XPASS result.
Diff Detail
Unit TestsFailed Event Timeline
jdenny marked 3 inline comments as done. Comment ActionsApply suggestions from review. @jhenderson: Thanks! This revision is now accepted and ready to land.Jul 16 2021, 12:25 AM This revision was landed with ongoing or failed builds.Jul 16 2021, 4:14 PM Closed by commit rGb8355b71260e: [lit] Add --xfail-not/LIT_XFAIL_NOT (authored by jdenny). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 358770 llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/Test.py
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/main.py
llvm/utils/lit/tests/xfail-cl.py |
References to options should be preceded with :option:, so that they're auto-linked to them. Take a look at e.g. some of the LLVM binutils for examples of its usage.