From 83a798208cee2ebe8a2be6850ab42f75dac5e9d9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 25 Sep 2021 18:49:13 +0100 Subject: [PATCH] convert all SimRunner functions to yield --- src/openpower/test/state.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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): -- 2.30.2