Changeset 64847 in vbox for trunk/src/VBox/ValidationKit/tests/storage
- Timestamp:
- Dec 13, 2016 12:42:29 PM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/tests/storage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py
r62190 r64847 139 139 return (True, str(sOutput)); 140 140 141 def _execLocallyOrThroughTxs(self, sExec, asArgs, sInput ):141 def _execLocallyOrThroughTxs(self, sExec, asArgs, sInput, cMsTimeout): 142 142 """ 143 143 Executes the given program locally or through TXS based on the … … 154 154 oStdIn = '/dev/null'; # pylint: disable=R0204 155 155 fRc = self.oTxsSession.syncExecEx(sExec, (sExec,) + asArgs, 156 oStdIn = oStdIn, oStdOut = oStdOut); 156 oStdIn = oStdIn, oStdOut = oStdOut, 157 cMsTimeout = cMsTimeout); 157 158 sOutput = oStdOut.getOutput(); 158 159 else: … … 160 161 return (fRc, sOutput); 161 162 162 def execBinary(self, sExec, asArgs, sInput = None ):163 def execBinary(self, sExec, asArgs, sInput = None, cMsTimeout = 3600000): 163 164 """ 164 165 Executes the given binary with the given arguments … … 172 173 sBinary = self._getBinaryPath(sExec); 173 174 if sBinary is not None: 174 fRc, sOutput = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput );175 fRc, sOutput = self._execLocallyOrThroughTxs(sBinary, asArgs, sInput, cMsTimeout); 175 176 else: 176 177 fRc = False; -
trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py
r63761 r64847 392 392 393 393 # Destroy all volumes first. 394 for sMountPoint in self.dVols.keys(): 394 for sMountPoint in self.dVols.keys(): # pylint: disable=C0201 395 395 self.destroyVolume(sMountPoint); 396 396 397 397 # Destroy all pools. 398 for sPool in self.dPools.keys(): 398 for sPool in self.dPools.keys(): # pylint: disable=C0201 399 399 self.destroyStoragePool(sPool); 400 400 -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r64787 r64847 127 127 """ Runs the testcase """ 128 128 _ = cMsTimeout 129 fRc, sOutput = self.oExecutor.execBinary('fio', (self.sCfgFileId,) );129 fRc, sOutput = self.oExecutor.execBinary('fio', (self.sCfgFileId,), cMsTimeout = cMsTimeout); 130 130 # @todo: Parse output. 131 131 _ = sOutput; … … 182 182 if self.fDirectIo: 183 183 tupArgs += ('-I',); 184 fRc, sOutput = self.oExecutor.execBinary('iozone', tupArgs );184 fRc, sOutput = self.oExecutor.execBinary('iozone', tupArgs, cMsTimeout = cMsTimeout); 185 185 if fRc: 186 186 self.sResult = sOutput; … … 835 835 return self.kdHostIoCacheDescs[sHostIoCache]; 836 836 837 def testBenchmark(self, sTargetOs, sBenchmark, sMountpoint, oExecutor, dTestSet): 837 def testBenchmark(self, sTargetOs, sBenchmark, sMountpoint, oExecutor, dTestSet, \ 838 cMsTimeout = 3600000): 838 839 """ 839 840 Runs the given benchmark on the test host. … … 852 853 fRc = oTst.prepare(); 853 854 if fRc: 854 fRc = oTst.run( );855 fRc = oTst.run(cMsTimeout); 855 856 if fRc: 856 857 if self.fReportBenchmarkResults: … … 1009 1010 sMountPoint = self.prepareStorage(oStorCfgVm); 1010 1011 if sMountPoint is not None: 1011 self.testBenchmark('linux', sIoTest, sMountPoint, oExecVm, dTestSet); 1012 self.testBenchmark('linux', sIoTest, sMountPoint, oExecVm, dTestSet, \ 1013 cMsTimeout = 2 * 3600 * 1000); # 2 hours max (Benchmark and QCOW takes some time) 1012 1014 self.cleanupStorage(oStorCfgVm); 1013 1015 else:
Note:
See TracChangeset
for help on using the changeset viewer.