Changeset 61353 in vbox
- Timestamp:
- Jun 1, 2016 12:59:11 AM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
-
testdriver/vbox.py (modified) (2 diffs)
-
tests/unittests/tdUnitTest1.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r61330 r61353 933 933 return fRc; 934 934 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 """ 948 940 # Make sure we've got our own VirtualBox config and VBoxSVC (on XPCOM at least). 949 941 if not self.fUseDefaultSvc: … … 951 943 sUser = os.environ.get('USERNAME', os.environ.get('USER', os.environ.get('LOGNAME', 'unknown'))); 952 944 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(); 953 959 954 960 # Do the detecting. -
trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py
r61022 r61353 376 376 377 377 self._figureVersion(); 378 self._makeEnvironmentChanges(); 378 379 379 380 self.testRunUnitTestsSet(r'^tst*', 'testcase')
Note:
See TracChangeset
for help on using the changeset viewer.

