aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2019-01-23 18:49:48 +0000
committerEmma Foley <emma.l.foley@intel.com>2019-01-28 21:51:59 +0000
commit269a64291f42c0a210226f7bf002cd4942f1d8fc (patch)
treeb594a8db4ffdc4769884b0ac5df25e62820947f3
parentdfb534bbd7ab1454c1ad3b63d0b785e3050c1962 (diff)
Suppress log outputs in test_task.py
Change-Id: Ic7b4ebe5fff9a0a31e395e67b8a3ea52d99442a9 JIRA: YARDSTICK-1541 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
-rw-r--r--yardstick/tests/unit/benchmark/core/test_task.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yardstick/tests/unit/benchmark/core/test_task.py b/yardstick/tests/unit/benchmark/core/test_task.py
index e1414c2ae..2bf7e2b9e 100644
--- a/yardstick/tests/unit/benchmark/core/test_task.py
+++ b/yardstick/tests/unit/benchmark/core/test_task.py
@@ -30,6 +30,14 @@ from yardstick.common import utils
class TaskTestCase(unittest.TestCase):
+ def setUp(self):
+ self._mock_log = mock.patch.object(task, 'LOG')
+ self.mock_log = self._mock_log.start()
+ self.addCleanup(self._stop_mock)
+
+ def _stop_mock(self):
+ self._mock_log.stop()
+
@mock.patch.object(base, 'Context')
def test_parse_nodes_with_context_same_context(self, mock_context):
scenario_cfg = {