]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
run_tests.sh cosmetic, make if/then style consistent
authorSteven Hardy <shardy@redhat.com>
Thu, 20 Dec 2012 11:28:53 +0000 (11:28 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 20 Dec 2012 11:28:53 +0000 (11:28 +0000)
I introduced an inconsistent style with the pep8 check patch, so fixing this up here

Change-Id: I9a1a612172e493e0d2476c7f6613bbb9b9de2878
Signed-off-by: Steven Hardy <shardy@redhat.com>
run_tests.sh

index 46c4c47a7f4f667a96bd404e51c061fc4eaf7e09..0d82c9c35e18a2275ed60b4097254344ffef93ab 100755 (executable)
@@ -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