From c4fad0b0d7ff339715ff406321d478f275c68ddc Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 28 Sep 2023 22:52:59 +0530 Subject: [PATCH] fix: logs must be a string --- run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index 08f52f6..6de97be 100755 --- a/run.py +++ b/run.py @@ -207,20 +207,20 @@ if __name__ == "__main__": print("Summary:\n") - logs = [] + logs = "" if success: print(f"Successful tests:\n") for s in success: - log = f"[OK] {s}" + log = f"[OK] {s}\n" print(log) - logs.append(log) + logs += log if failures: print(f"\n\nFailed tests:\n") for _, (test, error) in enumerate(failures.items()): log = f"[FAIL] {test} failed with error:\n{error}\n-----\n" print(log) - logs.append(log) + logs += log upload_logs_to_ftest(len(failures) == 0, logs)