'workspace_path' being an absolute path leads to 'ecc_csv' being
an absolute path. Then it won't be found among 'file' as they
are relative paths.
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
\r
def ParseEccReport(self, ecc_diff_range: Dict[str, List[Tuple[int, int]]], workspace_path: str) -> None:\r
ecc_log = os.path.join(workspace_path, "Ecc.log")\r
- ecc_csv = "Ecc.csv"\r
- file = os.listdir(workspace_path)\r
+ ecc_csv = os.path.join(workspace_path, "Ecc.csv")\r
row_lines = []\r
ignore_error_code = self.GetIgnoreErrorCode()\r
- if ecc_csv in file:\r
+ if os.path.exists(ecc_csv):\r
with open(ecc_csv) as csv_file:\r
reader = csv.reader(csv_file)\r
for row in reader:\r