X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace%2Fpylint.sh;h=f04f8ad870856e826cf6ba49fee91b5797989977;hb=ab123b17bb7169924cb6f3be8c1ef0a1c6133552;hp=35b287f08d2da3651f24261c634221f7d37caf96;hpb=af11423c1194469eaece9f550547b845720fbac9;p=lttng-ci.git diff --git a/scripts/babeltrace/pylint.sh b/scripts/babeltrace/pylint.sh index 35b287f..f04f8ad 100755 --- a/scripts/babeltrace/pylint.sh +++ b/scripts/babeltrace/pylint.sh @@ -1,4 +1,4 @@ -#!/bin/sh -exu +#!/bin/bash -exu # # Copyright (C) 2019 Michael Jeanson # Copyright (C) 2019 Francis Deslauriers @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -o pipefail + PYTHON3=python3 PYENV_HOME="$WORKSPACE/.pyenv/" @@ -40,6 +42,6 @@ exit_code=0 cd src/babeltrace black --diff --check . | tee ../../black.out || exit_code=1 -flake8 | tee ../../flake8.out || exit_code=1 +flake8 --output-file=../../flake8.out --tee || exit_code=1 exit $exit_code