fix: logs must be a string
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f4244bfc83
commit
c4fad0b0d7
1 changed files with 4 additions and 4 deletions
8
run.py
8
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)
|
||||
|
|
Loading…
Reference in a new issue