VirtualBox

Changeset 61353 in vbox


Ignore:
Timestamp:
Jun 1, 2016 12:59:11 AM (8 years ago)
Author:
vboxsync
Message:

tdUnitTest1.py: We should set VBOX_USER_HOME too.

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

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

    r61330 r61353  
    933933        return fRc;
    934934
    935     def importVBoxApi(self):
    936         """
    937         Import the 'vboxapi' module from the VirtualBox build we're using and
    938         instantiate the two basic objects.
    939 
    940         This will try detect an development or installed build if no build has
    941         been associated with the driver yet.
    942         """
    943         if self.fImportedVBoxApi:
    944             return True;
    945 
    946         ## @todo split up this messy function.
    947 
     935    def _makeEnvironmentChanges(self):
     936        """
     937        Make the necessary VBox related environment changes.
     938        Children not importing the VBox API should call this.
     939        """
    948940        # Make sure we've got our own VirtualBox config and VBoxSVC (on XPCOM at least).
    949941        if not self.fUseDefaultSvc:
     
    951943            sUser = os.environ.get('USERNAME', os.environ.get('USER', os.environ.get('LOGNAME', 'unknown')));
    952944            os.environ['VBOX_IPC_SOCKETID'] = sUser + '-VBoxTest';
     945        return True;
     946
     947    def importVBoxApi(self):
     948        """
     949        Import the 'vboxapi' module from the VirtualBox build we're using and
     950        instantiate the two basic objects.
     951
     952        This will try detect an development or installed build if no build has
     953        been associated with the driver yet.
     954        """
     955        if self.fImportedVBoxApi:
     956            return True;
     957
     958        self._makeEnvironmentChanges();
    953959
    954960        # Do the detecting.
  • trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py

    r61022 r61353  
    376376
    377377        self._figureVersion();
     378        self._makeEnvironmentChanges();
    378379
    379380        self.testRunUnitTestsSet(r'^tst*', 'testcase')
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