Changeset 79071 in vbox
- Timestamp:
- Jun 11, 2019 12:44:53 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131231
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py
r79046 r79071 682 682 % (self.sVmName, uFamily,)); 683 683 return True; 684 685 def getTestUser(self): 686 """ 687 Gets the primary test user name. 688 """ 689 if self.isWindows(): 690 return 'Administrator'; 691 return 'vbox'; 692 693 def getTestUserPassword(self, sUser = None): 694 """ 695 Gets the password for the primary user (or other specified one). 696 """ 697 if sUser == 'test': 698 return ''; 699 if sUser == 'vboxuser': # Default unattended installation user and password. 700 return 'changeme'; 701 return 'password'; 684 702 685 703 def getCom1RawFile(self, oVM): … … 1325 1343 return True; 1326 1344 1345 def getTestUser(self): 1346 """ 1347 Gets the primary test user name. 1348 """ 1349 if self.isWindows(): 1350 return 'Administrator'; 1351 return 'vbox'; 1352 1353 def getTestUserPassword(self, sUser = None): 1354 """ 1355 Gets the password for the primary user (or other specified one). 1356 """ 1357 if sUser == 'test': 1358 return ''; 1359 if sUser == 'vboxuser': # Default unattended installation user and password. 1360 return 'changeme'; 1361 return 'password'; 1362 1363 1327 1364 1328 1365 class BootSectorTestVm(TestVm): -
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r79067 r79071 117 117 118 118 if self.sUser is None: 119 if self.oTestVm.isWindows(): 120 self.sUser = 'Administrator'; 121 else: 122 self.sUser = 'vbox'; 119 self.sUser = self.oTestVm.getTestUser(); 123 120 124 121 if self.sPassword is None: 125 self.sPassword = 'password';122 self.sPassword = self.oTestVm.getTestUserPassword(self.sUser); 126 123 127 124 if self.sDomain is None: … … 415 412 Test the guest session handling. 416 413 """ 417 def __init__(self, sUser = None, sPassword = None, sDomain = None, \ 418 sSessionName = ""): 414 def __init__(self, sUser = None, sPassword = None, sDomain = None, sSessionName = ""): 419 415 tdTestGuestCtrlBase.__init__(self); 420 416 self.sSessionName = sSessionName; … … 2722 2718 """ 2723 2719 2720 ## @todo r=bird: This fails on windows 7 RTM. Just create a stupid file and delete it again, 2721 # this chord.wav stuff is utter nonsense. 2724 2722 if oTestVm.isWindows(): 2725 2723 sFileToDelete = "c:\\Windows\\Media\\chord.wav"; … … 2740 2738 # Try to delete system files. 2741 2739 [ tdTestFileRemove(sFile = 'c:\\pagefile.sys'), tdTestResult() ], 2742 [ tdTestFileRemove(sFile = 'c:\\Windows\\kernel32.sys'), tdTestResult() ] 2740 [ tdTestFileRemove(sFile = 'c:\\Windows\\kernel32.sys'), tdTestResult() ] ## r=bird: it's in \system32\ ... 2743 2741 ]); 2744 2742 -
trunk/src/VBox/ValidationKit/tests/additions/tdAddSharedFolders1.py
r79067 r79071 51 51 """ 52 52 53 def __init__(self, oTstDrv ):53 def __init__(self, oTstDrv, fUseAltFsPerfPathForWindows = False): 54 54 base.SubTestDriverBase.__init__(self, oTstDrv, 'add-shared-folders', 'Shared Folders'); 55 55 56 self.asTestsDef = [ 'fsperf', ]; 57 self.asTests = self.asTestsDef; 58 self.asExtraArgs = []; 56 self.asTestsDef = [ 'fsperf', ]; 57 self.asTests = self.asTestsDef; 58 self.asExtraArgs = []; 59 self.sGstFsPerfPath = '${CDROM}/vboxvalidationkit/${OS/ARCH}/FsPerf${EXESUFF}'; 60 self.sGstFsPerfPathAlt = 'C:/Apps/FsPerf${EXESUFF}'; 61 self.fUseAltFsPerfPathForWindows = fUseAltFsPerfPathForWindows; 59 62 60 63 def parseOption(self, asArgs, iArg): … … 204 207 asArgs.extend(self.asExtraArgs); 205 208 reporter.log2('Starting guest FsPerf (%s)...' % (asArgs,)); 206 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'FsPerf', 30 * 60 * 1000, 207 '${CDROM}/vboxvalidationkit/${OS/ARCH}/FsPerf${EXESUFF}', asArgs); 209 sFsPerfPath = self.sGstFsPerfPath; 210 if oTestVm.isWindows() and self.fUseAltFsPerfPathForWindows: # bird: Temp hack till we get UDF cloning implemented. 211 sFsPerfPath = self.sGstFsPerfPathAlt; # Helps making unattended install tests work. 212 fRc = self.oTstDrv.txsRunTest(oTxsSession, 'FsPerf', 30 * 60 * 1000, sFsPerfPath, asArgs); 208 213 reporter.log2('FsPerf -> %s' % (fRc,)); 209 214 -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsUnattendedInst1.py
r79067 r79071 276 276 return True; 277 277 278 def getTestUser(self): 279 # Default unattended installation user (parent knowns its password). 280 return 'vboxuser'; 281 278 282 279 283 # … … 382 386 # Sub-test drivers. 383 387 # 384 self.addSubTestDriver(SubTstDrvAddSharedFolders1(self ));388 self.addSubTestDriver(SubTstDrvAddSharedFolders1(self, fUseAltFsPerfPathForWindows = True)); # !HACK ALERT! UDF cloning. 385 389 self.addSubTestDriver(SubTstDrvAddGuestCtrl(self)); 386 390 … … 529 533 reporter.testDone(); 530 534 535 fRc = True; 536 # Kudge: GAs doesn't come up correctly, so we have to reboot the guest first: 537 # Looks like VBoxService isn't there. 538 if oTestVm.fOptInstallAdditions: 539 reporter.testStart('Rebooting'); 540 fRc, oTxsSession = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession); 541 reporter.testDone(); 542 531 543 # If we're installing GAs, wait for them to come online: 532 fRc = True; 533 if oTestVm.fOptInstallAdditions: 544 if oTestVm.fOptInstallAdditions and fRc is True: 534 545 reporter.testStart('Guest additions'); 535 546 aenmRunLevels = [vboxcon.AdditionsRunLevelType_Userland,]; 536 547 if oTestVm.isLoggedOntoDesktop(): 537 548 aenmRunLevels.append(vboxcon.AdditionsRunLevelType_Desktop); 538 fRc = self.waitForGAs(oSession, cMsTimeout = cMsTimeout / 2, aenmWaitForRunLevels = aenmRunLevels); 549 fRc = self.waitForGAs(oSession, cMsTimeout = cMsTimeout / 2, aenmWaitForRunLevels = aenmRunLevels, 550 aenmWaitForActive = (vboxcon.AdditionsFacilityType_VBoxGuestDriver, 551 vboxcon.AdditionsFacilityType_VBoxService,)); 539 552 reporter.testDone(); 540 553
Note:
See TracChangeset
for help on using the changeset viewer.