Ensure error exit codes fail integrations

The exit code of sub commands were ignored.  As a result all
integration jobs would pass even when they fail.

Change-Id: I071283d2737199ed710e246740f68f8e857027f2
Closes-Bug: #1546772
This commit is contained in:
Eric Brown 2016-02-17 14:41:44 -08:00 committed by Tim Kelsey
parent 43a102face
commit 8dd30b8284
2 changed files with 3 additions and 4 deletions

View File

@ -144,9 +144,9 @@ class BanditManager():
sev_level=sev_level, conf_level=conf_level,
lines=lines)
except Exception:
raise RuntimeError("Unable to output report using '%s' formatter."
% output_format)
except Exception as e:
raise RuntimeError("Unable to output report using '%s' formatter: "
"%s" % (output_format, str(e)))
def discover_files(self, targets, recursive=False, excluded_paths=''):
'''Add tests directly and from a directory to the test set

View File

@ -40,7 +40,6 @@ if [[ $clone -eq 1 ]] ; then
fi
pushd $projectdir
set +e
# --notest allows us to create the tox-managed virtualenv without
# running any tests.
tox -e bandit --notest