File tree 3 files changed +14
-10
lines changed
3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,16 @@ config.substitutions.append(
73
73
)
74
74
config .substitutions .append (("%{python}" , '"%s"' % (sys .executable )))
75
75
76
+ # This diagnostic sometimes appears in windows when using bash as an external
77
+ # shell. Ignore it in lit's output where we need to strictly check only the
78
+ # relevant output.
79
+ config .substitutions .append (
80
+ (
81
+ "%{filter-lit}" ,
82
+ "grep -v 'bash.exe: warning: could not find /tmp, please create!'" ,
83
+ )
84
+ )
85
+
76
86
# Enable coverage.py reporting, assuming the coverage module has been installed
77
87
# and sitecustomize.py in the virtualenv has been modified appropriately.
78
88
if lit_config .params .get ("check-coverage" , None ):
Original file line number Diff line number Diff line change 20
20
# The last FileCheck directive below checks that the debugging commands for the
21
21
# above RUN line are not killed and do execute at the right time.
22
22
23
- # RUN: %{lit} -a %{inputs}/shtest-external-shell-kill | FileCheck %s
23
+ # RUN: %{lit} -a %{inputs}/shtest-external-shell-kill | %{filter-lit} | FileCheck %s
24
24
# END.
25
25
26
26
# CHECK: Command Output (stdout):
Original file line number Diff line number Diff line change 1
1
# Check that -a/-v/-vv makes the line number of the failing RUN command clear.
2
2
3
3
4
- # This diagnostic sometimes appears in windows when using bash as an external
5
- # shell. Ignore it so we can strictly check the relevant output.
6
- #
7
- # DEFINE: %{filter} = \
8
- # DEFINE: grep -v 'bash.exe: warning: could not find /tmp, please create!'
9
-
10
- # RUN: not %{lit} -a %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
11
- # RUN: not %{lit} -v %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
12
- # RUN: not %{lit} -vv %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
4
+ # RUN: not %{lit} -a %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
5
+ # RUN: not %{lit} -v %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
6
+ # RUN: not %{lit} -vv %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
13
7
# END.
14
8
15
9
You can’t perform that action at this time.
0 commit comments