From: Michael Jeanson Date: Mon, 7 Oct 2019 19:32:51 +0000 (-0400) Subject: jjb: Make sure pylint fails when warnings are present X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=945874c08e3435fcc45dd277533e2610189f3a87;p=lttng-ci.git jjb: Make sure pylint fails when warnings are present Signed-off-by: Michael Jeanson --- 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