Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
meta-security-isafw: Making CVE plugin to catch non-zero exit code fr…
Browse files Browse the repository at this point in the history
…om cve-check-tool

(From meta-security-isafw rev: 346706b8e3b19e2fe22c5aba8de8d3ad05ef9089)

Signed-off-by: Elena Reshetova <[email protected]>
  • Loading branch information
ereshetova authored and ostroproject-ci committed Jul 6, 2016
1 parent 28799e8 commit 1924fa6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions meta-security-isafw/lib/isafw/isaplugins/ISA_cve_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,12 @@ def process_report_type(self, rtype):
stdout_value = result[0]
tool_stderr_value = result[1]
if not tool_stderr_value :
report = self.report_name + "." + rtype
with open(report, 'wb') as freport:
freport.write(stdout_value)
if popen.returncode != 0:
tool_stderr_value = "cve-check-tool terminated with non-zero exit code " + str(popen.returncode)
else:
report = self.report_name + "." + rtype
with open(report, 'wb') as freport:
freport.write(stdout_value)
return tool_stderr_value

def process_patch_list(self, patch_files):
Expand Down

0 comments on commit 1924fa6

Please sign in to comment.