From 9432fdea1dbd32e91a24f3652aa4765471fb2c7f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 16 Dec 2021 14:21:11 +0000 Subject: [PATCH] start/stop wb_get in TestRunnerBase, otherwise it never ends --- src/openpower/test/runner.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/openpower/test/runner.py b/src/openpower/test/runner.py index fd654025..cc91b75d 100644 --- a/src/openpower/test/runner.py +++ b/src/openpower/test/runner.py @@ -32,6 +32,7 @@ from openpower.decoder.power_decoder2 import PowerDecode2 from soc.config.test.test_loadstore import TestMemPspec from nmutil.util import wrap from openpower.test.wb_get import wb_get +import openpower.test.wb_get as wbget from openpower.test.state import TestState, StateRunner, ExpectedState @@ -161,6 +162,10 @@ class TestRunnerBase(FHDLTestCase): # The methods contained in the respective Runner classes are # called using this list when possible + # allow wb_get to run + if self.rom is not None: + wbget.stop = False + state_list = [] if self.run_hdl: @@ -314,6 +319,10 @@ class TestRunnerBase(FHDLTestCase): for runner in state_list: yield from runner.cleanup() # TODO, some arguments? + # finally stop wb_get from going + if self.rom is not None: + wbget.stop = True + styles = { 'dec': {'base': 'dec'}, 'bin': {'base': 'bin'}, -- 2.30.2