Changeset 70657 in vbox
- Timestamp:
- Jan 20, 2018 7:02:11 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testboxscript/testboxscript.py
r70548 r70657 9 9 abnormally or due to an UPGRADE request. 10 10 """ 11 12 from __future__ import print_function; 11 13 12 14 __copyright__ = \ … … 67 69 """ 68 70 if self.oTask is not None: 69 print('Wait for child task...') 71 print('Wait for child task...'); 70 72 self.oTask.terminate() 71 73 self.oTask.wait() 72 print('done. Exiting') 74 print('done. Exiting'); 73 75 self.oTask = None; 74 76 -
trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py
r70656 r70657 30 30 31 31 # Standard Python imports. 32 import copy; 32 33 import os; 33 34 import re; … … 190 191 """ 191 192 192 def __init__(self, sVmName, fGrouping, sHd = None, sKind = None, acCpusSup = None, # pylint: disable=R0913 193 asVirtModesSup = None, fIoApic = None, fPae = None, sNic0AttachType = None, 194 sFloppy = None, fVmmDevTestingPart = None, fVmmDevTestingMmio = False, asParavirtModesSup = None, 195 fRandomPvPMode = False, sFirmwareType = 'bios', sChipsetType = 'piix3', 196 sHddControllerType = 'IDE Controller', sDvdControllerType = 'IDE Controller'): 197 self.oSet = None; ### ??? 193 def __init__(self, # pylint: disable=R0913 194 sVmName, # type: str 195 fGrouping, # type: bool 196 oSet = None, # type: TestVmSet 197 sHd = None, # type: str 198 sKind = None, # type: str 199 acCpusSup = None, # type: List[int] 200 asVirtModesSup = None, # type: List[str] 201 fIoApic = None, # type: bool 202 fPae = None, # type: bool 203 sNic0AttachType = None, # type: str 204 sFloppy = None, # type: str 205 fVmmDevTestingPart = None, # type: bool 206 fVmmDevTestingMmio = False, # type: bool 207 asParavirtModesSup = None, # type: List[str] 208 fRandomPvPMode = False, # type: bool 209 sFirmwareType = 'bios', # type: str 210 sChipsetType = 'piix3', # type: str 211 sHddControllerType = 'IDE Controller', # type: str 212 sDvdControllerType = 'IDE Controller' # type: str 213 ): 214 self.oSet = oSet; 198 215 self.sVmName = sVmName; 199 216 self.fGrouping = fGrouping; … … 976 993 self.sResourcePath = sResourcePath; 977 994 995 def selectSet(self, fGrouping, sTxsTransport = None, fCheckResources = True): 996 """ 997 Returns a VM set with the selected VMs. 998 """ 999 oSet = TestVmSet(oTestVmManager = self); 1000 for oVm in g_aTestVMs: 1001 if oVm.fGrouping & fGrouping: 1002 if sTxsTransport is None or oVm.sNic0AttachType is None or sTxsTransport == oVm.sNic0AttachType: 1003 if not fCheckResources or len(oVm.getMissingResources(self.sResourcePath)) == 0: 1004 oCopyVm = copy.deepcopy(oVm); 1005 oCopyVm.oSet = oSet; 1006 oSet.aoTestVms.append(oCopyVm); 1007 return oSet; 1008 978 1009 def getStandardVmSet(self, sTxsTransport): 979 1010 """ … … 983 1014 testrsrc tree for usable VMs, but for the moment it's all hard coded. :-) 984 1015 """ 985 986 987 oSet = TestVmSet(oTestVmManager = self); 988 for oVm in g_aTestVMs: 989 if oVm.fGrouping & g_kfGrpStandard: 990 if sTxsTransport is None or oVm.sNic0AttachType is None or sTxsTransport == oVm.sNic0AttachType: 991 if len(oVm.getMissingResources(self.sResourcePath)) == 0: 992 oSet.aoTestVms.append(oVm); 993 oVm.oSet = oSet; ## ??? 994 return oSet; 1016 return self.selectSet(g_kfGrpStandard, sTxsTransport) 995 1017 996 1018 def getSmokeVmSet(self): … … 998 1020 Gets a representative set of VMs for smoke testing. 999 1021 """ 1000 1001 oSet = TestVmSet(oTestVmManager = self); 1002 for oVm in g_aTestVMs: 1003 if oVm.fGrouping & g_kfGrpSmoke: 1004 if len(oVm.getMissingResources(self.sResourcePath)) == 0: 1005 oSet.aoTestVms.append(oVm); 1006 oVm.oSet = oSet; ## ??? 1007 return oSet; 1022 return self.selectSet(g_kfGrpSmoke); 1008 1023 1009 1024 def shutUpPyLint(self): -
trunk/src/VBox/ValidationKit/tests/audio/tdGuestHostTimings.py
r69452 r70657 56 56 self.sSessionTypeDef = 'gui'; 57 57 58 self.oTestVmSet = self.oTestVmManager.getStandardVmSet('nat') 58 self.oTestVmSet = self.oTestVmManager.getStandardVmSet('nat') ## ??? 59 59 60 60 # Use the command line "--test-vms mw7x64 execute" to run the only "mw7x64" VM 61 oTestVm = vboxtestvms.TestVm(self.oTestVmSet, 'mw7x64', sHd = 'mw7x64.vdi', 62 sKind = 'Windows7', acCpusSup = range(1, 2), fIoApic = True, sFirmwareType = 'bios', 63 asParavirtModesSup = ['hyperv'], asVirtModesSup = ['hwvirt-np'], sHddControllerType = 'SATA Controller'); 61 oTestVm = vboxtestvms.TestVm('mw7x64', oSet = self.oTestVmSet, sHd = 'mw7x64.vdi', 62 sKind = 'Windows7', acCpusSup = range(1, 2), fIoApic = True, sFirmwareType = 'bios', 63 asParavirtModesSup = ['hyperv'], asVirtModesSup = ['hwvirt-np'], 64 sHddControllerType = 'SATA Controller'); 64 65 65 66 self.oTestVmSet.aoTestVms.append(oTestVm); -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py
r69111 r70657 81 81 82 82 def __init__(self, oSet, sVmName, sKind, sInstallIso, sHdCtrlNm, cGbHdd, fFlags): 83 vboxtestvms.TestVm.__init__(self, oSet, sVmName, sKind = sKind, sHddControllerType = sHdCtrlNm,83 vboxtestvms.TestVm.__init__(self, sVmName, oSet = oSet, sKind = sKind, sHddControllerType = sHdCtrlNm, 84 84 fRandomPvPMode = (fFlags & self.kfNoWin81Paravirt) == 0); 85 85 self.sDvdImage = os.path.join(self.ksIsoPathBase, sInstallIso);
Note:
See TracChangeset
for help on using the changeset viewer.