fix: success flag
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2023-10-02 18:07:51 +05:30
parent d3b8a33c8f
commit 3671f9b8eb
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -34,11 +34,13 @@ def after_all(context):
print(log)
logs += log
success = True
if context.failure:
success = False
print(f"\n\nFailed tests:\n")
for _, (test, error) in enumerate(context.failure.items()):
log = f"[FAIL] {test} failed with error:\n{error}\n-----\n"
print(log)
logs += log
upload_logs_to_ftest(score == max_score, logs)
upload_logs_to_ftest(success, logs)