Changeset 66960 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 18, 2017 7:48:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r65838 r66960 2836 2836 if sMachineId == self.sMachineId \ 2837 2837 and sName == '/VirtualBox/GuestInfo/Net/0/V4/IP': 2838 self.oParentTask._setIp(sValue); # pylint: disable=W0212 2838 oParentTask = self.oParentTask; 2839 if oParentTask: 2840 oParentTask._setIp(sValue); # pylint: disable=W0212 2839 2841 2840 2842 … … 2846 2848 self.sMacAddr = sMacAddr; 2847 2849 self.fReversedSetup = fReversedSetup; 2848 self.oVBox = oSession.oVBox; 2850 self.oVBox = oSession.oVBox; ## @todo who needs this? 2849 2851 self.oVBoxEventHandler = None; 2850 2852 self.oTxsSession = None; 2851 self.fpApiVer = oSession.fpApiVer; 2853 self.fpApiVer = oSession.fpApiVer; ## @todo who needs this? 2852 2854 2853 2855 # Skip things we don't implement. … … 2904 2906 """Deregisters the event handler.""" 2905 2907 fRc = True; 2906 if self.oVBoxEventHandler is not None:2907 fRc = self.oVBoxEventHandler.unregister();2908 oVBoxEventHandler = self.oVBoxEventHandler; 2909 if oVBoxEventHandler is not None: 2908 2910 self.oVBoxEventHandler = None; 2911 fRc = oVBoxEventHandler.unregister(); 2912 oVBoxEventHandler.oParentTask = None; # Try avoid cylic deps. 2909 2913 return fRc; 2910 2914 … … 2972 2976 2973 2977 # Signal done, or retry? 2978 fDeregister = False; 2974 2979 if fSuccess \ 2975 2980 or self.fReversedSetup \ 2976 2981 or self.getAgeAsMs() >= self.cMsTimeout: 2977 2982 self.signalTaskLocked(); 2983 fDeregister = True; 2978 2984 else: 2979 2985 sIpAddr = self.sNextIpAddr if self.sNextIpAddr is not None else self.sIpAddr; … … 2981 2987 2982 2988 self.oCv.release(); 2989 2990 # If we're done, deregister the callback (w/o owning lock). It will 2991 if fDeregister: 2992 self._deregisterEventHandler(); 2983 2993 return True; 2984 2994 … … 3002 3012 def cancelTask(self): 3003 3013 """ Cancels the task. """ 3014 self._deregisterEventHandler(); # (make sure to avoid cyclic fun) 3004 3015 self.oCv.acquire(); 3005 3016 if not self.fSignalled:
Note:
See TracChangeset
for help on using the changeset viewer.