2323COMMENT = {"asm" : "//" , "dasm" : "#" }
2424
2525
26- def invoke_tool (exe , checkRC , cmd_args , testline , verbose = False ):
26+ def invoke_tool (exe , check_rc , cmd_args , testline , verbose = False ):
2727 if isinstance (cmd_args , list ):
2828 args = [applySubstitutions (a , substitutions ) for a in cmd_args ]
2929 else :
@@ -36,7 +36,7 @@ def invoke_tool(exe, checkRC, cmd_args, testline, verbose=False):
3636 out = subprocess .run (
3737 cmd ,
3838 shell = True ,
39- check = checkRC ,
39+ check = check_rc ,
4040 stdout = subprocess .PIPE ,
4141 stderr = subprocess .DEVNULL ,
4242 ).stdout
@@ -194,10 +194,10 @@ def main():
194194 # if not is used in runline, disable rc check, since
195195 # the command might or might not
196196 # return non-zero code on a single line run
197- checkRC = True
197+ check_rc = True
198198 mc_cmd_args = mc_cmd .strip ().split ()
199199 if mc_cmd_args [0 ] == "not" :
200- checkRC = False
200+ check_rc = False
201201 mc_tool = mc_cmd_args [1 ]
202202 mc_cmd = mc_cmd [len (mc_cmd_args [0 ]) :].strip ()
203203 else :
@@ -234,7 +234,7 @@ def main():
234234 (
235235 check_prefixes ,
236236 mc_tool ,
237- checkRC ,
237+ check_rc ,
238238 mc_cmd_args ,
239239 triple_in_cmd ,
240240 march_in_cmd ,
@@ -255,7 +255,7 @@ def main():
255255 for (
256256 prefixes ,
257257 mc_tool ,
258- checkRC ,
258+ check_rc ,
259259 mc_args ,
260260 triple_in_cmd ,
261261 march_in_cmd ,
@@ -274,7 +274,7 @@ def main():
274274 # get output for each testline
275275 out = invoke_tool (
276276 ti .args .llvm_mc_binary or mc_tool ,
277- checkRC ,
277+ check_rc ,
278278 mc_args ,
279279 line ,
280280 verbose = ti .args .verbose ,
0 commit comments