Changeset 84970 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Jun 26, 2020 2:54:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py
r84963 r84970 175 175 self.logVmInfo(oVM); 176 176 177 reporter.testStart('Waiting for TXS'); 178 if oTestVm.isWindows(): 179 self.sFileCdWait = ('%s/VBoxWindowsAdditions.exe' % (self.sGstPathGaPrefix,)); 180 elif oTestVm.isLinux(): 181 self.sFileCdWait = ('%s/VBoxLinuxAdditions.run' % (self.sGstPathGaPrefix,)); 182 183 oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = True, 184 cMsCdWait = 5 * 60 * 1000, 185 sFileCdWait = self.sFileCdWait); 186 reporter.testDone(); 187 188 # Certain Linux guests don't behave accordingly so that detecting the CD isn't working properly. 189 # So reboot those guests in the hope that it works finally. 190 ### @todo Needs investigation; probably only udev or something is broken there (?). 191 if oTestVm.isLinux(): 192 reporter.testStart('Rebooting and reconnecting to TXS'); 193 fRc, oTxsSession = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, fCdWait = True, 194 cMsCdWait = 5 * 60 * 1000, 195 sFileCdWait = self.sFileCdWait); 177 # We skip tests for VBox < 6.1 for now. 178 fVersionIgnored = self.fpApiVer <= 6.1; 179 180 if fVersionIgnored: 181 reporter.log('Skipping tests because VBox version %s is ignored' % (self.fpApiVer,)); 182 else: 183 reporter.testStart('Waiting for TXS'); 184 if oTestVm.isWindows(): 185 self.sFileCdWait = ('%s/VBoxWindowsAdditions.exe' % (self.sGstPathGaPrefix,)); 186 elif oTestVm.isLinux(): 187 self.sFileCdWait = ('%s/VBoxLinuxAdditions.run' % (self.sGstPathGaPrefix,)); 188 189 oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = True, 190 cMsCdWait = 5 * 60 * 1000, 191 sFileCdWait = self.sFileCdWait); 196 192 reporter.testDone(); 197 193 198 if oSession is not None:199 self.addTask(oTxsSession);200 # Do the testing.201 fSkip = 'install' not in self.asTests;202 reporter.testStart('Install');203 if not fSkip:204 fRc, oTxsSession = self.testInstallAdditions(oSession, oTxsSession, oTestVm);205 reporter.testDone(fSkip);206 207 if not fSkip \ 208 and not fRc:209 reporter.log('Skipping following tests as Guest Additions were not installed successfully');210 else:211 fSkip = ' guestprops' not in self.asTests;212 reporter.testStart(' Guest Properties');194 # Certain Linux guests don't behave accordingly so that detecting the CD isn't working properly. 195 # So reboot those guests in the hope that it works finally. 196 ### @todo Needs investigation; probably only udev or something is broken there (?). 197 if oTestVm.isLinux(): 198 reporter.testStart('Rebooting and reconnecting to TXS'); 199 fRc, oTxsSession = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, fCdWait = True, 200 cMsCdWait = 5 * 60 * 1000, 201 sFileCdWait = self.sFileCdWait); 202 reporter.testDone(); 203 204 if oSession is not None: 205 self.addTask(oTxsSession); 206 # Do the testing. 207 fSkip = 'install' not in self.asTests; 208 reporter.testStart('Install'); 213 209 if not fSkip: 214 fRc = self.testGuestProperties(oSession, oTxsSession, oTestVm) and fRc;210 fRc, oTxsSession = self.testInstallAdditions(oSession, oTxsSession, oTestVm); 215 211 reporter.testDone(fSkip); 216 212 217 fSkip = 'guestcontrol' not in self.asTests; 218 reporter.testStart('Guest Control'); 219 if not fSkip: 220 fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession); 221 reporter.testDone(fSkip); 222 223 fSkip = 'sharedfolders' not in self.asTests and self.fpApiVer >= 6.0; 224 reporter.testStart('Shared Folders'); 225 if not fSkip: 226 fRc, oTxsSession = self.aoSubTstDrvs[1].testIt(oTestVm, oSession, oTxsSession); 227 reporter.testDone(fSkip or fRc is None); 228 229 ## @todo Save and restore test. 230 231 ## @todo Reset tests. 232 233 ## @todo Final test: Uninstallation. 234 235 # Cleanup. 236 self.removeTask(oTxsSession); 237 self.terminateVmBySession(oSession) 213 if not fSkip \ 214 and not fRc: 215 reporter.log('Skipping following tests as Guest Additions were not installed successfully'); 216 else: 217 fSkip = 'guestprops' not in self.asTests; 218 reporter.testStart('Guest Properties'); 219 if not fSkip: 220 fRc = self.testGuestProperties(oSession, oTxsSession, oTestVm) and fRc; 221 reporter.testDone(fSkip); 222 223 fSkip = 'guestcontrol' not in self.asTests; 224 reporter.testStart('Guest Control'); 225 if not fSkip: 226 fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession); 227 reporter.testDone(fSkip); 228 229 fSkip = 'sharedfolders' not in self.asTests; 230 reporter.testStart('Shared Folders'); 231 if not fSkip: 232 fRc, oTxsSession = self.aoSubTstDrvs[1].testIt(oTestVm, oSession, oTxsSession); 233 reporter.testDone(fSkip or fRc is None); 234 235 ## @todo Save and restore test. 236 237 ## @todo Reset tests. 238 239 ## @todo Final test: Uninstallation. 240 241 # Cleanup. 242 self.removeTask(oTxsSession); 243 self.terminateVmBySession(oSession); 244 238 245 return fRc; 239 246
Note:
See TracChangeset
for help on using the changeset viewer.