Skip to content

Commit

Permalink
clippy: allow for propagation of conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatouse authored and kdudka committed May 27, 2024
1 parent 58a89df commit d216903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/plugins/clippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def install_clippy_hook(results, mock):
def convert_hook(results):
src = f"{results.dbgdir_raw}{CLIPPY_OUTPUT}"
dst = f"{results.dbgdir_uni}/clippy-capture.err"
cmd = f'{RUN_CLIPPY_CONVERT} < {src} | csgrep --remove-duplicates > {dst}'
cmd = f'set -o pipefail; {RUN_CLIPPY_CONVERT} < {src} | csgrep --remove-duplicates > {dst}'
return results.exec_cmd(cmd, shell=True)

props.post_process_hooks += [convert_hook]

0 comments on commit d216903

Please sign in to comment.