change state_add to name, kls
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Sep 2021 17:39:38 +0000 (18:39 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 14 Sep 2021 17:39:38 +0000 (18:39 +0100)
src/openpower/test/state.py

index 80fc4749320afa5d1afc4fdc2815d4da4a6714e4..701c69f7689b0bae1078956e3081b75be6dc38e8 100644 (file)
@@ -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):