Adds Wiki URL to gerrit output 89/36089/2
authorlhinds <lhinds@redhat.com>
Wed, 14 Jun 2017 06:20:57 +0000 (07:20 +0100)
committerlhinds <lhinds@redhat.com>
Wed, 14 Jun 2017 07:00:26 +0000 (08:00 +0100)
A link to a wiki page is supplied, that instructs the user on how
to make an exception patch.

Also quick fix to log format

Change-Id: Icfc8072d9764fe321e14b97080fca47d26ea8dc6
Signed-off-by: lhinds <lhinds@redhat.com>
anteater/src/patch_scan.py
anteater/src/project_scan.py

index 5bd1609..48c78fd 100644 (file)
@@ -160,5 +160,5 @@ def process_failure():
     """ If any scan operations register a failure, sys.exit(1) is called
         to allow jjb to register a failure"""
     if failure:
-        logger.error('Failures registered')
+        logger.error('Please visit: https://wiki.opnfv.org/x/5oey')
         sys.exit(1)
index 9ab9e17..9b143e9 100644 (file)
@@ -99,7 +99,7 @@ def scan_file(project_dir, project, binary_list, binary_project_list,
                                      format(line.rstrip()))
                         logger.error('Matched String: {0}'.
                                      format(match.group()))
-                        with open(reports_dir + "contents_" + project + ".log",
+                        with open(reports_dir + "contents-" + project + ".log",
                                   "a") \
                                 as gate_report:
                                     gate_report. \