From e098963e8617d32909795c9b389dee848b637636 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 20 Dec 2012 11:28:53 +0000 Subject: [PATCH] run_tests.sh cosmetic, make if/then style consistent I introduced an inconsistent style with the pep8 check patch, so fixing this up here Change-Id: I9a1a612172e493e0d2476c7f6613bbb9b9de2878 Signed-off-by: Steven Hardy --- run_tests.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 46c4c47a..0d82c9c3 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -50,10 +50,8 @@ function run_pep8 { # so the local test matches the jenkins gate tests TOX_PEP_VERSION=$(grep "pep8==" $BASE_DIR/tox.ini | sed "s/.*pep8==//") INST_PEP_VERSION=$(pep8 --version 2>/dev/null) - if [[ "$TOX_PEP_VERSION" != "$INST_PEP_VERSION" ]] - then - if [[ -z "$INST_PEP_VERSION" ]] - then + if [[ "$TOX_PEP_VERSION" != "$INST_PEP_VERSION" ]]; then + if [[ -z "$INST_PEP_VERSION" ]]; then echo "ERROR pep8 is not installed, please install pep8 $TOX_PEP_VERSION" >&2 else echo "ERROR installed version of pep8 $INST_PEP_VERSION" >&2 -- 2.45.2