autotest: make verify_parameter_values more verbose

This commit is contained in:
Peter Barker 2020-03-17 12:32:17 +11:00 committed by Peter Barker
parent fc0b2ef920
commit 741d3e1435

View File

@ -2131,7 +2131,7 @@ class AutoTest(ABC):
max_delta = wanted_value[1]
wanted_value = wanted_value[0]
if abs(fetched_value - wanted_value) > max_delta:
bad += "%s=%f (want=%f) " % (param, fetched_value, wanted_value)
bad += "%s=%f (want=%f +/-%f) " % (param, fetched_value, wanted_value, max_delta)
if len(bad):
raise NotAchievedException("Bad parameter values: %s" %
(bad,))