fix: logs must be a string
ci/woodpecker/push/woodpecker Pipeline was successful Details

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
1 changed files with 4 additions and 4 deletions

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)