From 11ea9621ead4feea74446bc386154932ed8daca9 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 15 Jul 2016 11:16:37 +0100 Subject: [PATCH] tests/stune: fix boost value for smoke test Dividing the boost value by 100 twice makes the smoke test always fail. Signed-off-by: Michele Di Giorgio --- tests/stune/smoke_test_ramp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/stune/smoke_test_ramp.py b/tests/stune/smoke_test_ramp.py index a749f8184..2569b7f06 100644 --- a/tests/stune/smoke_test_ramp.py +++ b/tests/stune/smoke_test_ramp.py @@ -65,7 +65,7 @@ class STune(LisaTest): task_start = boost_task_rtapp.index[0] after_first_period = task_start + (rtapp_period / 1000.) - boost = tc["cgroups"]["conf"]["schedtune"]["/stune"]["boost"] / 100. + boost = tc["cgroups"]["conf"]["schedtune"]["/stune"]["boost"] analyzer_const = { "SCHED_LOAD_SCALE": 1024, "BOOST": boost, @@ -73,8 +73,8 @@ class STune(LisaTest): analyzer = Analyzer(ftrace, analyzer_const, window=(after_first_period, None)) statement = "(((SCHED_LOAD_SCALE - boost_task_rtapp:util) * BOOST) // 100) == boost_task_rtapp:margin" - error_msg = "task was not boosted to the expected margin: {}".\ - format(boost) + error_msg = "task was not boosted to the expected margin: {:.2f}"\ + .format(boost / 100.) self.assertTrue(analyzer.assertStatement(statement), msg=error_msg) # vim :set tabstop=4 shiftwidth=4 expandtab -- GitLab