Changeset 85377 in vbox
- Timestamp:
- Jul 17, 2020 5:28:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py
r84758 r85377 214 214 215 215 return sVBoxCfg; 216 217 def _waitAdditionsIsRunning(self, oGuest): 218 """ 219 Check is the additions running 220 """ 221 cAttempt = 0; 222 fRc = False; 223 while cAttempt < 30: 224 fRc = oGuest.additionsRunLevel in [vboxcon.AdditionsRunLevelType_Userland, 225 vboxcon.AdditionsRunLevelType_Desktop]; 226 if fRc: 227 eServiceStatus, _ = oGuest.getFacilityStatus(vboxcon.AdditionsFacilityType_VBoxService); 228 fRc = eServiceStatus == vboxcon.AdditionsFacilityStatus_Active; 229 if fRc: 230 break; 231 232 self.oTestDriver.sleep(10); 233 cAttempt += 1; 234 return fRc; 216 235 217 236 def createSession(self, oSession, sName, sUser, sPassword, cMsTimeout = 10 * 1000, fIsError = True): … … 545 564 # To do it, one will try to open the guest session and start the guest process in loop 546 565 566 if not self._waitAdditionsIsRunning(oSession.o.console.guest): 567 return (False, None); 568 547 569 cAttempt = 0; 548 570 oGuestSession = None; … … 850 872 """ 851 873 874 self.oTestDriver.sleep(30); 875 852 876 _ = oSession; 853 877 … … 912 936 # Waiting the VM is ready. 913 937 # To do it, one will try to open the guest session and start the guest process in loop 938 939 if not self._waitAdditionsIsRunning(oSession.o.console.guest): 940 return (False, None); 914 941 915 942 cAttempt = 0; … … 1171 1198 """ 1172 1199 1200 self.oTestDriver.sleep(30); 1201 1173 1202 _ = oGuestSession; 1174 1203 … … 1181 1210 else: 1182 1211 1183 #---- report tasklist for debug purpose -----1184 (fRc, _, _, aBuf) = self.guestProcessExecute(oGuestSession, 'Check for running VM',1185 60 * 1000, 'C:\\Windows\\System32\\tasklist.exe',1186 ['C:\\Windows\\System32\\tasklist.exe', '/m',1187 'vboxheadless*', '/nh'], True, True);1188 try:1189 sTaskList = str(aBuf);1190 reporter.log("Guest tasks for user %s: %s" % (sUser, sTaskList));1191 except:1192 pass;1193 #---- end report tasklist for debug purpose -----1194 1212 1195 1213 (fRc, _, _, aBuf) = self.guestProcessExecute(oGuestSession, 'Check for running VM',
Note:
See TracChangeset
for help on using the changeset viewer.