From 551a86fb623ec011247b7648c7da5e7e36be13bb Mon Sep 17 00:00:00 2001 From: Michal Nowikowski Date: Sun, 10 Oct 2021 07:50:47 +0200 Subject: [PATCH] fixed trace --- server/kraken/server/bg/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/kraken/server/bg/jobs.py b/server/kraken/server/bg/jobs.py index f26e09e5..1b3794fe 100644 --- a/server/kraken/server/bg/jobs.py +++ b/server/kraken/server/bg/jobs.py @@ -310,10 +310,10 @@ def _analyze_dev_test_case_result(job, job_tcr): q = q.order_by(desc(Flow.created)) ref_tcr = q.first() - log.info('REF TCR: %s %s %s %s', ref_tcr, ref_tcr.test_case.name, ref_tcr.job.run.flow, ref_tcr.job.run.flow.created) # determine change if ref_tcr: + log.info('REF TCR: %s %s %s %s', ref_tcr, ref_tcr.test_case.name, ref_tcr.job.run.flow, ref_tcr.job.run.flow.created) if ref_tcr.result == job_tcr.result: no_change_cnt += 1 else: @@ -324,6 +324,7 @@ def _analyze_dev_test_case_result(job, job_tcr): job_tcr.change = consts.TC_RESULT_CHANGE_REGR regr_cnt += 1 else: + log.info('NO REF TCR, ie. new') job_tcr.change = consts.TC_RESULT_CHANGE_NEW new_cnt += 1