Changeset 66954 in vbox
- Timestamp:
- May 18, 2017 3:55:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxcon.py
r62484 r66954 39 39 """ 40 40 This is a hack to avoid the self.oVBoxMgr.constants.MachineState_Running 41 ugl yness that forces one into the rigthmargin... Anyone using this module41 ugliness that forces one into the right margin... Anyone using this module 42 42 can get to the constants easily by: 43 43 44 import testdriver.vbox as vbox45 if self.o.machine.state == vbox .MachineState_Running:44 from testdriver import vboxcon 45 if self.o.machine.state == vboxcon.MachineState_Running: 46 46 do stuff; 47 47 48 For our own convenience we have a global variable 'vbox' that refers to the 49 instance of this class so we can do the same thing from within the module 50 as well (if we didn't we'd have to do testdriver.vbox.MachineState_Running). 48 For our own convenience there's a vboxcon attribute set up in vbox.py, 49 class TestDriver which is the basis for the VirtualBox testcases. It takes 50 care of setting things up properly through the global variable 51 'goHackModuleClass' that refers to the instance of this class(if we didn't 52 we'd have to use testdriver.vboxcon.MachineState_Running). 51 53 """ 52 54 def __init__(self, oWrapped):
Note:
See TracChangeset
for help on using the changeset viewer.