From 0d0bdddb062d4e93cfa0ed025dfed1a6ff65df9d Mon Sep 17 00:00:00 2001 From: lhinds Date: Mon, 21 Aug 2017 10:23:43 +0100 Subject: Incorrect Ident Failure = True is incorrectly formnatted, meaning the failure is not registered within the conditonal check Change-Id: Ib648c9d763fe1d9cbcc69dfe2f27c2aad89a68cf Signed-off-by: lhinds --- anteater/src/patch_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py index 9f15556..0bc4e72 100644 --- a/anteater/src/patch_scan.py +++ b/anteater/src/patch_scan.py @@ -131,7 +131,7 @@ def scan_patch(project, patch_file, binary_list, file_audit_list, logger.error('Flagged Content: %s', line.rstrip()) logger.error('Matched Regular Exp: %s', regex) logger.error('Rationale: %s', desc.rstrip()) - failure = True + failure = True with open(reports_dir + "contents_" + project + ".log", "a") as gate_report: gate_report.write('File contains violation: {0}\n'. -- cgit 1.2.3-korg