Changeset 72732 in vbox
- Timestamp:
- Jun 29, 2018 6:53:30 AM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/base.py
r70575 r72732 744 744 self.sName = sName; 745 745 self.oTstDrv = oTstDrv; 746 self.asRsrcs = []; 746 747 747 748 -
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r72725 r72732 1767 1767 1768 1768 def getResourceSet(self): 1769 asRsrcs = [] 1769 asRsrcs = []; 1770 1770 if self.oTestVmSet is not None: 1771 asRsrcs.extend(self.oTestVmSet.getResourceSet()) 1772 asRsrcs = base.TestDriver.getResourceSet(self)1773 return asRsrcs 1771 asRsrcs.extend(self.oTestVmSet.getResourceSet()); 1772 asRsrcs.extend(base.TestDriver.getResourceSet(self)); 1773 return asRsrcs; 1774 1774 1775 1775 def actionExtract(self): -
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r72729 r72732 932 932 ]; 933 933 self.asTests = self.asTestsDef; 934 935 self.asRsrcs = [] 936 self.asRsrcs.append('5.3/guestctrl/50mb_rnd.dat') 934 self.asRsrcs = ['5.3/guestctrl/50mb_rnd.dat', ]; 937 935 938 936 def parseOption(self, asArgs, iArg): # pylint: disable=R0912,R0915 … … 3613 3611 vbox.TestDriver.__init__(self); 3614 3612 self.oTestVmSet = self.oTestVmManager.getSmokeVmSet('nat'); 3615 self.asRsrcs = None 3613 self.asRsrcs = None; 3616 3614 self.fQuick = False; # Don't skip lengthly tests by default. 3617 3615 self.addSubTestDriver(SubTstDrvAddGuestCtrl(self)); … … 3645 3643 def getResourceSet(self): 3646 3644 if self.asRsrcs is None: 3647 self.asRsrcs = [] 3645 self.asRsrcs = []; 3648 3646 for oSubTstDrv in self.aoSubTstDrvs: 3649 self.asRsrcs.extend(oSubTstDrv.asRsrcs) 3650 self.asRsrcs.extend(self.oTestVmSet.getResourceSet()) 3651 return self.asRsrcs 3647 self.asRsrcs.extend(oSubTstDrv.asRsrcs); 3648 self.asRsrcs.extend(self.oTestVmSet.getResourceSet()); 3649 return self.asRsrcs; 3652 3650 3653 3651 def actionConfig(self): -
trunk/src/VBox/ValidationKit/tests/api/tdApi1.py
r72726 r72732 52 52 def __init__(self, aSubTestDrivers = None): 53 53 vbox.TestDriver.__init__(self) 54 self.asRsrcs = None 55 for classSubTestDrivers in aSubTestDrivers:56 self.addSubTestDriver( classSubTestDrivers(self))54 self.asRsrcs = None; 55 for oSubTestDriverClass in aSubTestDrivers: 56 self.addSubTestDriver(oSubTestDriverClass(self)); 57 57 58 58 # … … 62 62 def getResourceSet(self): 63 63 if self.asRsrcs is None: 64 self.asRsrcs = [] 64 self.asRsrcs = []; 65 65 for oSubTstDrv in self.aoSubTstDrvs: 66 self.asRsrcs.extend(oSubTstDrv.asRsrcs) 67 return self.asRsrcs 66 self.asRsrcs.extend(oSubTstDrv.asRsrcs); 67 return self.asRsrcs; 68 68 69 69 def actionConfig(self): -
trunk/src/VBox/ValidationKit/tests/api/tdMoveMedium1.py
r71963 r72732 60 60 Execute the sub-testcase. 61 61 """ 62 return 62 return self.testMediumMove() 63 63 64 64 # -
trunk/src/VBox/ValidationKit/tests/api/tdMoveVM1.py
r72726 r72732 59 59 base.SubTestDriverBase.__init__(self, 'move-vm', oTstDrv) 60 60 61 self.asRsrcs = []62 61 self.asRsrcs.append(os.path.join('5.3','isos','tdMoveVM1.iso')); 63 62 self.asRsrcs.append(os.path.join('5.3','floppy','tdMoveVM1.img'));
Note:
See TracChangeset
for help on using the changeset viewer.