File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,11 @@ def format_run(
148
148
args .end_rev ,
149
149
"--" ,
150
150
] + cpp_files
151
+
152
+ # For manual testing purposes...
153
+ if "INDUCE_FAILURE_IN_FORMATTER" in " " .join (cpp_files ):
154
+ cf_cmd .insert (1 , "--induce-failure" )
155
+
151
156
print (f"Running: { ' ' .join (cf_cmd )} " )
152
157
self .cf_cmd = cf_cmd
153
158
proc = subprocess .run (cf_cmd , capture_output = True )
@@ -192,6 +197,11 @@ def format_run(
192
197
"-r" ,
193
198
f"{ args .start_rev } ..{ args .end_rev } " ,
194
199
] + py_files
200
+
201
+ # For manual testing purposes...
202
+ if "INDUCE_FAILURE_IN_FORMATTER" in " " .join (py_files ):
203
+ darker_cmd += ["--induce-failure" ]
204
+
195
205
print (f"Running: { ' ' .join (darker_cmd )} " )
196
206
self .darker_cmd = darker_cmd
197
207
proc = subprocess .run (darker_cmd , capture_output = True )
You can’t perform that action at this time.
0 commit comments