From d838656d2f4baca653c158198a0d28e6e97a9905 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 14 Sep 2021 18:39:38 +0100 Subject: [PATCH] change state_add to name, kls --- src/openpower/test/state.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 80fc4749..701c69f7 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -115,8 +115,9 @@ global state_factory state_factory = {'sim': SimState} -def state_add(sdic): - state_factory.update(sdic) +def state_add(name, kls): + log("state_add", name, kls) + state_factory[name] = kls def TestState(state_type, to_test, dut, code): -- 2.30.2