From 945874c08e3435fcc45dd277533e2610189f3a87 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 7 Oct 2019 15:32:51 -0400 Subject: [PATCH] jjb: Make sure pylint fails when warnings are present Signed-off-by: Michael Jeanson --- scripts/babeltrace/pylint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.34.1