mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
ci: clang-tidy: fix attempt (#25328)
This commit is contained in:
@@ -110,10 +110,11 @@ def run_tidy(args, tmpdir, build_path, queue):
|
||||
args.extra_arg, args.extra_arg_before)
|
||||
|
||||
try:
|
||||
subprocess.check_call(invocation, stdin=None, stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT)
|
||||
subprocess.check_call(invocation, stdin=None, stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
|
||||
except subprocess.CalledProcessError as e:
|
||||
sys.stdout.write(' '.join(invocation) + '\n')
|
||||
subprocess.call(invocation)
|
||||
sys.stdout.write(f'failed on {name} --> {" ".join(invocation)}\n')
|
||||
# Now run again to see the actual output
|
||||
subprocess.call(invocation, stdin=None)
|
||||
global tidy_failures
|
||||
tidy_failures = tidy_failures + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user