More simple

This commit is contained in:
alesapin 2021-11-25 16:41:38 +03:00
parent a6a44cf8b6
commit e6e4c485bc
2 changed files with 4 additions and 9 deletions

View File

@ -146,7 +146,5 @@ if __name__ == "__main__":
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)
# Refuse other checks to run if fast test failed
for test_result in test_results:
status = test_result[1]
if status != "OK":
sys.exit(1)
if state != 'success':
sys.exit(1)

View File

@ -172,8 +172,5 @@ if __name__ == "__main__":
prepared_events = prepare_tests_results_for_clickhouse(pr_info, test_results, state, stopwatch.duration_seconds, stopwatch.start_time_str, report_url, check_name)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)
# If some tests failed set red status to check
for test_result in test_results:
status = test_result[1]
if status != "OK":
sys.exit(1)
if state != 'success':
sys.exit(1)