run-clang-tidy: Use check_call instead of check_output

Summary:
Streamlines the output under Python 3.x.

Before:
```
b'Enabled checks:\n    clang-analyzer-apiModeling.google.GTest\n ...
```

After:
```
Enabled checks:
    clang-analyzer-apiModeling.google.GTest
...
```

Reviewers: cfe-commits, alexfh

Reviewed By: alexfh

Subscribers: JDevlieghere

Differential Revision: https://reviews.llvm.org/D37482

Change-Id: I6287104bc73926ae6d0f66c15c250c3cb44bee33
llvm-svn: 319148
This commit is contained in:
Kevin Funk 2017-11-28 07:17:01 +00:00
parent 115607226a
commit 08c2f0fabb
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ def main():
if args.checks:
invocation.append('-checks=' + args.checks)
invocation.append('-')
print(subprocess.check_output(invocation))
subprocess.check_call(invocation)
except:
print("Unable to run clang-tidy.", file=sys.stderr)
sys.exit(1)