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:
parent
43a102face
commit
8dd30b8284
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user