23
23
COMMENT = {"asm" : "//" , "dasm" : "#" }
24
24
25
25
26
- def invoke_tool (exe , checkRC , cmd_args , testline , verbose = False ):
26
+ def invoke_tool (exe , check_rc , cmd_args , testline , verbose = False ):
27
27
if isinstance (cmd_args , list ):
28
28
args = [applySubstitutions (a , substitutions ) for a in cmd_args ]
29
29
else :
@@ -36,7 +36,7 @@ def invoke_tool(exe, checkRC, cmd_args, testline, verbose=False):
36
36
out = subprocess .run (
37
37
cmd ,
38
38
shell = True ,
39
- check = checkRC ,
39
+ check = check_rc ,
40
40
stdout = subprocess .PIPE ,
41
41
stderr = subprocess .DEVNULL ,
42
42
).stdout
@@ -194,10 +194,10 @@ def main():
194
194
# if not is used in runline, disable rc check, since
195
195
# the command might or might not
196
196
# return non-zero code on a single line run
197
- checkRC = True
197
+ check_rc = True
198
198
mc_cmd_args = mc_cmd .strip ().split ()
199
199
if mc_cmd_args [0 ] == "not" :
200
- checkRC = False
200
+ check_rc = False
201
201
mc_tool = mc_cmd_args [1 ]
202
202
mc_cmd = mc_cmd [len (mc_cmd_args [0 ]) :].strip ()
203
203
else :
@@ -234,7 +234,7 @@ def main():
234
234
(
235
235
check_prefixes ,
236
236
mc_tool ,
237
- checkRC ,
237
+ check_rc ,
238
238
mc_cmd_args ,
239
239
triple_in_cmd ,
240
240
march_in_cmd ,
@@ -255,7 +255,7 @@ def main():
255
255
for (
256
256
prefixes ,
257
257
mc_tool ,
258
- checkRC ,
258
+ check_rc ,
259
259
mc_args ,
260
260
triple_in_cmd ,
261
261
march_in_cmd ,
@@ -274,7 +274,7 @@ def main():
274
274
# get output for each testline
275
275
out = invoke_tool (
276
276
ti .args .llvm_mc_binary or mc_tool ,
277
- checkRC ,
277
+ check_rc ,
278
278
mc_args ,
279
279
line ,
280
280
verbose = ti .args .verbose ,
0 commit comments