ci: fix encoding of documentation warning file

The file was opened as text, to avoid issues with UTF-8 in the future,
make it all binary and encode to UTF-8 correctly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-10-20 13:58:13 -04:00 committed by Anas Nashif
commit f35002c04d

View file

@ -98,7 +98,7 @@ def run_checkpatch(tc, commit_range):
def check_doc(tc, range): def check_doc(tc, range):
if os.path.exists(DOCS_WARNING_FILE) and os.path.getsize(DOCS_WARNING_FILE) > 0: if os.path.exists(DOCS_WARNING_FILE) and os.path.getsize(DOCS_WARNING_FILE) > 0:
with open(DOCS_WARNING_FILE, "r") as f: with open(DOCS_WARNING_FILE, "rb") as f:
log = f.read() log = f.read()
failure = ET.SubElement(tc, 'failure', type="failure", failure = ET.SubElement(tc, 'failure', type="failure",
message="documentation issues") message="documentation issues")