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:
parent
3d2e1dc431
commit
f35002c04d
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue