fix: success flag
ci/woodpecker/push/woodpecker Pipeline was successful Details

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

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)