diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py --- a/llvm/utils/update_cc_test_checks.py +++ b/llvm/utils/update_cc_test_checks.py @@ -238,7 +238,16 @@ filecheck_cmd = commands[-1] common.verify_filecheck_prefixes(filecheck_cmd) if not filecheck_cmd.startswith('FileCheck '): - print('WARNING: Skipping non-FileChecked RUN line: ' + l, file=sys.stderr) + print('NOTE: Executing in-place non-FileChecked RUN line: ' + l, file=sys.stderr) + # Run command in place + exe = [ti.args.clang] + clang_args + popen = subprocess.Popen(exe, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) + stdout, stderr = popen.communicate() + if popen.returncode != 0: + sys.stderr.write('Failed to run ' + ' '.join(exe) + '\n') + sys.stderr.write(stderr) + sys.stderr.write(stdout) + sys.exit(3) continue check_prefixes = [item for m in common.CHECK_PREFIX_RE.finditer(filecheck_cmd) for item in m.group(1).split(',')]