Bug 557934 - Follow-up: Direction shouldn't change its meaning; r=catlee

--HG--
branch : 1.0
This commit is contained in:
Ehsan Akhgari 2010-04-08 19:33:10 -04:00
Родитель 0100ea4637
Коммит 37d1d3cd72
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -277,18 +277,18 @@ class AnalysisRunner:
good_build_time = datetime.fromtimestamp(good.timestamp).strftime("%Y-%m-%d %H:%M:%S")
if self.isTestReversed(test_name):
if new_value > initial_value:
direction = "decrease"
reason = "Improvement"
else:
direction = "increase"
reason = "Regression"
else:
if new_value > initial_value:
direction = "increase"
reason = "Regression"
else:
direction = "decrease"
reason = "Improvement"
if new_value > initial_value:
direction = "increase"
else:
direction = "decrease"
chart_url = self.shorten(self.makeChartUrl(series, bad))
if good.revision:
@ -374,18 +374,18 @@ class AnalysisRunner:
good_build_time = datetime.fromtimestamp(good.timestamp).strftime("%Y-%m-%d %H:%M:%S")
if self.isTestReversed(test_name):
if new_value > initial_value:
direction = "decrease"
reason = "Improvement"
else:
direction = "increase"
reason = "Regression"
else:
if new_value > initial_value:
direction = "increase"
reason = "Regression"
else:
direction = "decrease"
reason = "Improvement"
if new_value > initial_value:
direction = "increase"
else:
direction = "decrease"
if state == "machine":
bad_machine_name = self.source.getMachineName(bad.machine_id)
good_machine_name = self.source.getMachineName(good.machine_id)