fix issue in converting table data for roam test

Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
This commit is contained in:
anil-tegala
2024-06-07 16:54:18 +05:30
parent 6271d5b5f8
commit eed1dd2329

View File

@@ -3557,9 +3557,7 @@ class lf_tests(lf_libs):
logging.info(str(pass_fail_data))
# prepare pass fail data to be displayed in a table
if len(pass_fail_data) > 1:
column_data = pass_fail_data[0]
row_data = [pass_fail_data[1:]]
message = tabulate(row_data, headers=column_data, tablefmt="rounded_grid")
message = tabulate(pass_fail_data, headers="firstrow", tablefmt="rounded_grid")
else:
message = "Test Passed"
# return false when any of the roam result is 'FAIL' in pass fail data