VirtualBox

Changeset 66954 in vbox


Ignore:
Timestamp:
May 18, 2017 3:55:31 PM (8 years ago)
Author:
vboxsync
Message:

ValidationKit: fix comment regarding vboxcon use which showed bit rot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxcon.py

    r62484 r66954  
    3939    """
    4040    This is a hack to avoid the self.oVBoxMgr.constants.MachineState_Running
    41     uglyness that forces one into the rigth margin...  Anyone using this module
     41    ugliness that forces one into the right margin...  Anyone using this module
    4242    can get to the constants easily by:
    4343
    44         import testdriver.vbox as vbox
    45         if self.o.machine.state == vbox.MachineState_Running:
     44        from testdriver import vboxcon
     45        if self.o.machine.state == vboxcon.MachineState_Running:
    4646            do stuff;
    4747
    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).
    5153    """
    5254    def __init__(self, oWrapped):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette