fix: count success if test doesnt fail
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Aravinth Manivannan 2023-10-01 20:37:34 +05:30
parent 7bb6595394
commit 40d1ab1cfa
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
2 changed files with 5 additions and 10 deletions

View File

@ -31,6 +31,7 @@ logger = configure_logger()
def upload_logs_to_ftest(success: bool, logs: str):
from .env import FTEST_HOST, FTEST_AUTH
parsed_ftest_host = urlparse(FTEST_HOST)
ftest = urlunparse(
(

View File

@ -32,16 +32,8 @@ def get_fediverse_actor(context):
@when("Receiving or querying an object")
def check_actor_exists(context):
name = "check_actor_exists"
try:
actor = get_ap_obj(context.actor_url)
assert actor is not None
except Exception as e:
logger.error(e)
context.failure[name] = e
raise e
context.success.append(name)
actor = get_ap_obj(context.actor_url)
assert actor is not None
context.actor = actor
@ -70,6 +62,7 @@ def verify_id_resolves(context):
logger.error(e)
context.failure[name] = e
raise e
context.success.append(name)
@then("context must be ActivityPub")
@ -88,3 +81,4 @@ def ctx_is_ap(context):
logger.error(e)
context.failure[name] = e
raise e
context.success.append(name)