File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -350,11 +350,12 @@ The timing data is stored in the `test_exec_root` in a file named
350
350
351
351
Do not treat the specified tests as ``XFAIL ``. The environment variable
352
352
``LIT_XFAIL_NOT `` can also be used in place of this option. The syntax is the
353
- same as for :option: `--xfail ` and ``LIT_XFAIL ``. :option: `--xfail-not ` and
354
- ``LIT_XFAIL_NOT `` always override all other ``XFAIL `` specifications,
355
- including an :option: `--xfail ` appearing later on the command line. The
356
- primary purpose is to suppress an ``XPASS `` result without modifying a test
357
- case that uses the ``XFAIL `` directive.
353
+ same as for :option: `--xfail ` and ``LIT_XFAIL `` except that ``LIST `` can be
354
+ replaced with ``* `` to specify all tests marked as ``XFAIL ``.
355
+ :option: `--xfail-not ` and ``LIT_XFAIL_NOT `` always override all other ``XFAIL ``
356
+ specifications, including an :option: `--xfail ` appearing later on the command
357
+ line. The primary purpose is to suppress an ``XPASS `` result without modifying
358
+ a test case that uses the ``XFAIL `` directive.
358
359
359
360
.. option :: --num-shards M
360
361
Original file line number Diff line number Diff line change @@ -300,7 +300,8 @@ def parse_args():
300
300
"--xfail-not" ,
301
301
metavar = "LIST" ,
302
302
type = _semicolon_list ,
303
- help = "do not XFAIL tests with paths in the semicolon separated list" ,
303
+ help = "do not XFAIL tests with paths in the semicolon separated list."
304
+ " Can use * to apply to all such tests" ,
304
305
default = os .environ .get ("LIT_XFAIL_NOT" , "" ),
305
306
)
306
307
selection_group .add_argument (
Original file line number Diff line number Diff line change @@ -238,7 +238,11 @@ def mark_xfail(selected_tests, opts):
238
238
test_full_name = t .getFullName ()
239
239
if test_file in opts .xfail or test_full_name in opts .xfail :
240
240
t .xfails += "*"
241
- if test_file in opts .xfail_not or test_full_name in opts .xfail_not :
241
+ if (
242
+ test_file in opts .xfail_not
243
+ or test_full_name in opts .xfail_not
244
+ or opts .xfail_not == ["*" ]
245
+ ):
242
246
t .xfail_not = True
243
247
244
248
Original file line number Diff line number Diff line change 5
5
# RUN: %{inputs}/xfail-cl \
6
6
# RUN: | FileCheck --check-prefix=CHECK-FILTER %s
7
7
8
+ # RUN: %{lit} --xfail 'false.txt;false2.txt;top-level-suite :: b :: test.txt' \
9
+ # RUN: --xfail-not '*' \
10
+ # RUN: %{inputs}/xfail-cl \
11
+ # RUN: | FileCheck --check-prefix=CHECK-FILTER %s
12
+
8
13
# RUN: env LIT_XFAIL='false.txt;false2.txt;top-level-suite :: b :: test.txt' \
9
14
# RUN: LIT_XFAIL_NOT='true-xfail.txt;top-level-suite :: a :: test-xfail.txt' \
10
15
# RUN: %{lit} %{inputs}/xfail-cl \
11
16
# RUN: | FileCheck --check-prefix=CHECK-FILTER %s
12
17
18
+ # RUN: env LIT_XFAIL='false.txt;false2.txt;top-level-suite :: b :: test.txt' \
19
+ # RUN: LIT_XFAIL_NOT='*' \
20
+ # RUN: %{lit} %{inputs}/xfail-cl \
21
+ # RUN: | FileCheck --check-prefix=CHECK-FILTER %s
22
+
13
23
# Check that --xfail-not and LIT_XFAIL_NOT always have precedence.
14
24
15
25
# RUN: env LIT_XFAIL=true-xfail.txt \
You can’t perform that action at this time.
0 commit comments