fix: logs must be a string
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-09-28 22:52:59 +05:30
parent f4244bfc83
commit c4fad0b0d7
Signed by: realaravinth
GPG key ID: F8F50389936984FF

8
run.py
View file

@ -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)