update fasttest a bit

This commit is contained in:
Nikolai Kochetov 2023-05-08 17:23:46 +00:00
parent b2c36fc3e5
commit fc02e9efc9

View File

@ -214,8 +214,11 @@ def main():
# Refuse other checks to run if fast test failed # Refuse other checks to run if fast test failed
if state != "success": if state != "success":
if FORCE_TESTS_LABEL in pr_info.labels and state != "error": if state == "error":
print(f"'{FORCE_TESTS_LABEL}' enabled, will report success") print("The status is 'error', report failure disregard the labels")
sys.exit(1)
elif FORCE_TESTS_LABEL in pr_info.labels:
print(f"'{FORCE_TESTS_LABEL}' enabled, reporting success")
else: else:
sys.exit(1) sys.exit(1)