From 70adc264a0072dc2536ebed1936842e2c402dd32 Mon Sep 17 00:00:00 2001 From: Hugo Lefeuvre Date: Wed, 1 Dec 2021 22:24:07 +0100 Subject: [PATCH] bugfix in the porting tool Signed-off-by: Hugo Lefeuvre --- README.md | 2 +- flexos-support/porthelper/parse_results.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c14c1fecf2..e01958cf27 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ token and run instead: ``` -$ docker build --build-arg UK_KRAFT_GITHUB_TOKEN="" --tag flexos-dev +$ docker build -f flexos.dockerfile --build-arg UK_KRAFT_GITHUB_TOKEN="" --tag flexos-dev . ``` Run the container as following: diff --git a/flexos-support/porthelper/parse_results.py b/flexos-support/porthelper/parse_results.py index 4f58660f61..360b3c173f 100755 --- a/flexos-support/porthelper/parse_results.py +++ b/flexos-support/porthelper/parse_results.py @@ -1,9 +1,10 @@ import glob, os import csv +import re def write_csv(outfile, lines): - f = open(outfile, 'w+', newline='') - writer = csv.writer(f, delimiter=',', + f = open(outfile, 'w+', newline='\n') + writer = csv.writer(f, delimiter=',',lineterminator='\n', quotechar='|', quoting=csv.QUOTE_MINIMAL) for line in lines: