This commit is contained in:
parent
d3b8a33c8f
commit
3671f9b8eb
1 changed files with 3 additions and 1 deletions
|
@ -34,11 +34,13 @@ def after_all(context):
|
||||||
print(log)
|
print(log)
|
||||||
logs += log
|
logs += log
|
||||||
|
|
||||||
|
success = True
|
||||||
if context.failure:
|
if context.failure:
|
||||||
|
success = False
|
||||||
print(f"\n\nFailed tests:\n")
|
print(f"\n\nFailed tests:\n")
|
||||||
for _, (test, error) in enumerate(context.failure.items()):
|
for _, (test, error) in enumerate(context.failure.items()):
|
||||||
log = f"[FAIL] {test} failed with error:\n{error}\n-----\n"
|
log = f"[FAIL] {test} failed with error:\n{error}\n-----\n"
|
||||||
print(log)
|
print(log)
|
||||||
logs += log
|
logs += log
|
||||||
|
|
||||||
upload_logs_to_ftest(score == max_score, logs)
|
upload_logs_to_ftest(success, logs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue