File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-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 )
@@ -187,11 +192,17 @@ def format_run(
187
192
return None
188
193
darker_cmd = [
189
194
"darker" ,
195
+ "--verbose" ,
190
196
"--check" ,
191
197
"--diff" ,
192
198
"-r" ,
193
199
f"{ args .start_rev } ..{ args .end_rev } " ,
194
200
] + py_files
201
+
202
+ # For manual testing purposes...
203
+ if "INDUCE_FAILURE_IN_FORMATTER" in " " .join (py_files ):
204
+ darker_cmd += ["--induce-failure" ]
205
+
195
206
print (f"Running: { ' ' .join (darker_cmd )} " )
196
207
self .darker_cmd = darker_cmd
197
208
proc = subprocess .run (darker_cmd , capture_output = True )
You can’t perform that action at this time.
0 commit comments