Skip to content

Commit 5a650a4

Browse files
author
Satheesh Rajendran
committed
Enable OS State for Mambo Environment
Let's enable OS State if asked by user for Mambo simulator environment, so that we can run OS tests, have verified using buildroot environment and works fine. Signed-off-by: Satheesh Rajendran <[email protected]>
1 parent df8dbf8 commit 5a650a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: common/OpTestSystem.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ def goto_state(self, state):
362362
# if user overrides from command line and machine not at desired state can lead to exceptions
363363
self.block_setup_term = 1 # block in case the system is not on/up
364364
self.target_state = state # used in WaitForIt
365-
if (isinstance(self.console, OpTestQemu.QemuConsole)
366-
or isinstance(self.console, OpTestMambo.MamboConsole)) \
367-
and (state == OpSystemState.OS):
368-
raise unittest.SkipTest(
369-
"OpTestSystem running QEMU/Mambo so skipping OpSystemState.OS test")
365+
if state == OpSystemState.OS:
366+
if (isinstance(self.console, OpTestQemu.QemuConsole)):
367+
raise unittest.SkipTest("OpTestSystem running QEMU/Mambo so skipping OpSystemState.OS test")
368+
elif (isinstance(self.console, OpTestMambo.MamboConsole)):
369+
self.state = OpSystemState.OS
370370
if (self.state == OpSystemState.UNKNOWN):
371371
log.debug(
372372
"OpTestSystem CHECKING CURRENT STATE and TRANSITIONING for TARGET STATE: %s" % (state))

0 commit comments

Comments
 (0)