From: Luke Kenneth Casson Leighton Date: Sat, 25 Sep 2021 17:49:13 +0000 (+0100) Subject: convert all SimRunner functions to yield X-Git-Tag: sv_maxu_works-initial~830 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83a798208cee2ebe8a2be6850ab42f75dac5e9d9;p=openpower-isa.git convert all SimRunner functions to yield --- diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 41587ca4..6274ba47 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -32,12 +32,18 @@ class StateRunner: near-identical in concept to python unittest.TestCase """ def __init__(self, dut, **kwargs): pass - def setup_for_test(self): pass - def setup_during_test(self): pass - def prepare_for_test(self, test): pass - def run_test(self): pass - def end_test(self): pass - def cleanup(self): pass + def setup_for_test(self): + if False: yield + def setup_during_test(self): + if False: yield + def prepare_for_test(self, test): + if False: yield + def run_test(self): + if False: yield + def end_test(self): + if False: yield + def cleanup(self): + if False: yield class SimRunner(StateRunner):