Skip to content

Commit 6a3905f

Browse files
committed
use check_rc
1 parent 9ced142 commit 6a3905f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

llvm/test/tools/UpdateTestChecks/update_mc_test_checks/Inputs/amdgpu_asm_err.s.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py
1+
// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py
22
// RUN: not llvm-mc -triple=amdgcn -show-encoding %s 2>&1 | FileCheck --check-prefixes=CHECKA %s
33
// RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck --check-prefixes=CHECKB %s
44

llvm/utils/update_mc_test_checks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
COMMENT = {"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

Comments
 (0)