Searched defs:utils (Results 1 - 25 of 37) sorted by relevance

12

/vbox/src/VBox/ValidationKit/common/
H A D__init__.py33 from common import utils; namespace
H A Dwebutils.py38 from common import utils; namespace
72 if utils.isString(oObject):
165 oDst = utils.openNoInherit(sDstFile, 'wb');
/vbox/src/VBox/ValidationKit/testboxscript/
H A Dtestboxcommons.py40 from common import utils; namespace
60 if sTsPrf is None: sTsPrf = utils.getTimePrefix();
70 if sTsPrf is None: sTsPrf = utils.getTimePrefix();
83 sTsPrf = utils.getTimePrefix();
93 sCaller = utils.getCallerName(oTraceback.tb_frame);
123 fnLogger1('internal-error: No exception! %s' % (utils.getCallerName(iFrame=3)), utils.getCallerName(iFrame=3), sTsPrf);
H A Dtestboxupgrade.py43 from common import utils; namespace
281 if utils.isRunningFromCheckout():
H A Dtestboxconnection.py40 from common import utils namespace
189 'User-Agent': 'TestBoxScript/%s.0 (%s, %s)' % (__version__, utils.getHostOs(), utils.getHostArch()),
H A Dtestboxcommand.py38 from common import utils, webutils; namespace
115 sScriptFile = utils.argsGetFirst(sScriptCmdLine);
170 sOs = utils.getHostOs();
182 utils.sudoProcessOutputChecked(asCmd);
186 utils.sudoProcessOutputChecked(asCmd2);
220 if utils.isRunningFromCheckout():
H A Dtestboxtasks.py44 from common import utils; namespace
66 self._tsSecStarted = utils.timestampSecond();
170 self._secTsBackLogFlush = utils.timestampSecond();
193 self._secTsBackLogFlush = utils.timestampSecond();
260 or utils.timestampSecond() - secTsBackLogFlush >= self.kcSecBackLogFlush);
288 secStart = utils.timestampSecond();
297 if utils.timestampSecond() - secStart < self.ksecTestManagerTimeout:
327 cTimeoutLeft = utils.timestampSecond() - self._tsSecStarted;
345 asArgs = utils.argsSplit(sCmdLine);
432 close_fds = (False if utils
[all...]
/vbox/src/VBox/ValidationKit/tests/selftests/
H A DtdSelfTest2.py44 from common import utils; namespace
78 oSubXmlFile.write('<Test timestamp="%s" name="foobar1">' % (utils.getIsoTimestamp(),));
79 oSubXmlFile.write('<Test timestamp="%s" name="sub1">' % (utils.getIsoTimestamp(),));
80 oSubXmlFile.write('<Passed timestamp="%s"/>' % (utils.getIsoTimestamp(),));
82 oSubXmlFile.write('<End timestamp="%s" errors="0"/>' % (utils.getIsoTimestamp(),));
92 oSubXmlFile.write('<Test timestamp="%s" name="foobar2">\n\n\t\n\r\n' % (utils.getIsoTimestamp(),));
93 oSubXmlFile.write('<Test timestamp="%s" name="sub2">' % (utils.getIsoTimestamp(),));
94 oSubXmlFile.write(' <Passed timestamp="%s"/>\n' % (utils.getIsoTimestamp(),));
96 oSubXmlFile.write(' <End timestamp="%s" errors="0"/>\r' % (utils.getIsoTimestamp(),));
H A DtdSelfTest3.py44 from common import utils; namespace
63 oSubXmlFile.write('<Test timestamp="%s" name="foobar3">\n\n\t\n\r\n' % (utils.getIsoTimestamp(),));
64 oSubXmlFile.write('<Test timestamp="%s" name="sub3">' % (utils.getIsoTimestamp(),));
65 oSubXmlFile.write('<Test timestamp="%s" name="subsub1">' % (utils.getIsoTimestamp(),));
/vbox/src/VBox/ValidationKit/testdriver/
H A Dtst-txsclient.py41 from common import utils; namespace
183 oLocalFile = utils.openNoInherit(strUpFile, 'w+b');
200 oLocalFile = utils.openNoInherit(strDwnFile, "rb");
H A Dvboxinstaller.py51 from common import utils, webutils; namespace
187 if utils.getHostOs() == 'darwin':
302 for oProcess in utils.processListAll():
320 utils.processKill(oProcess.iPid); # No mercy.
325 if utils.processExists(oProcess.iPid):
340 iRc = utils.processCall(asArgs, shell = False, close_fds = False);
357 iRc = utils.sudoProcessCall(asArgs, shell = False, close_fds = False);
379 asMembers = utils.unpackFile(sMaybeArchive, self.sScratchPath, reporter.log,
416 sHost = utils.getHostOs()
436 cMbFreeSpace = utils
[all...]
/vbox/src/VBox/ValidationKit/testmanager/batch/
H A Dvcs_import.py46 from common import utils; namespace
114 sLogXml = utils.processOutputChecked(asArgs);
H A Dfilearchiver.py46 from common import utils; namespace
120 utils.noxcptDeleteFile(sZipFileNm + '.tmp');
138 utils.noxcptDeleteFile(sZipFileNm);
153 if utils.noxcptDeleteFile(sSrcFileBase + sFile) is False:
192 self.dprint('\n'.join(utils.getXcptInfo(4)));
219 self.warning('TestSet %d: Exception in _processTestSet:\n%s' % (idTestSet, '\n'.join(utils.getXcptInfo()),));
237 if utils.noxcptRmDir(sCurPath) is True:
/vbox/src/VBox/ValidationKit/testmanager/webui/
H A Dwuiadminbuildsource.py33 from common import utils, webutils; namespace
72 utils.formatIntervalSeconds2(oData.cSecMaxAge) if oData.cSecMaxAge not in [-1, '', None] else '',
145 utils.formatIntervalSeconds2(oEntry.cSecMaxAge) if oEntry.cSecMaxAge is not None else None,
H A Dwuiadmintestcase.py33 from common import utils, webutils; namespace
66 utils.formatIntervalSeconds(oEntry.cSecTimeout),
87 % ( utils.formatIntervalSeconds(oTmp.cSecTimeout) if oTmp.cSecTimeout is not None else 'Default',
177 utils.formatIntervalSeconds2(oData.cSecTimeout), 'Default timeout')
H A Dwuiadmintestgroup.py32 from common import utils, webutils; namespace
140 % ( utils.formatIntervalSeconds(oMember.oTestCase.cSecTimeout if oVar.cSecTimeout is None
H A Dwuiadmintestbox.py42 from common import utils; namespace
328 utils.formatNumberNbsp(oEntry.cMbMemory) + u'\u00a0MB' if oEntry.cMbMemory is not None else 'N/A',
329 utils.formatNumberNbsp(oEntry.cMbScratch) + u'\u00a0MB' if oEntry.cMbScratch is not None else 'N/A',
H A Dwuigraphwiz.py39 from common import utils, webutils; namespace
222 iCmp = utils.stricmp(oSelf.oBuildCategory.sProduct, oOther.oBuildCategory.sProduct);
225 iCmp = utils.stricmp(oSelf.oBuildCategory.sBranch, oOther.oBuildCategory.sBranch);
228 iCmp = utils.stricmp(oSelf.oBuildCategory.sType, oOther.oBuildCategory.sType);
231 iCmp = utils.stricmp(oSelf.oTestBox.sName, oOther.oTestBox.sName);
308 utils.formatIntervalHours(self._dParams[WuiMain.ksParamReportPeriodInHours]) );
568 % ( utils.formatNumber(oSeries.aiErrorBarAbove[i]),
569 utils.formatNumber(oSeries.aiErrorBarBelow[i]),
574 utils.formatNumber(oSeries.aiValues[i]),
H A Dwuitestresult.py45 from common import webutils, utils; namespace
64 if utils.isString(oObject):
224 utils.formatNumber(oValue.lValue).replace(' ', '&nbsp;'),
353 '%s (%s sec)' % (utils.formatIntervalSeconds(cSecEffTimeout), cSecEffTimeout,) ]);
356 '%s (%s sec)' % (utils.formatIntervalSeconds(cSecCfgTimeout), cSecCfgTimeout,) ]);
/vbox/src/VBox/ValidationKit/testmanager/core/
H A Dbuildsource.py36 from common import utils; namespace
145 (oNewValue, sError) = utils.parseIntervalSeconds(oValue);
H A Ddb.py40 from common import utils, webutils; namespace
62 if utils.isString(oValue):
73 if utils.isString(oValue):
116 return self._oDb.executeInternal(self._oCursor, sOperation, aoArgs, utils.getCallerName());
120 return self._oDb.callProcInternal(self._oCursor, sProcedure, aoArgs, utils.getCallerName());
259 self._aoTraceBack.append([utils.timestampNano(), 'START TRANSACTION', 0, 0, utils.getCallerName(), None]);
267 nsStart = utils.timestampNano();
269 cNsElapsed = utils.timestampNano() - nsStart;
272 sCallerName = utils
[all...]
H A Dtestcaseargs.py37 from common import utils; namespace
145 self.cSecTimeout = utils.parseIntervalSeconds(cSecTimeout);
161 return utils.parseIntervalSeconds(oValue);
H A Dtestset.py38 from common import utils; namespace
546 if utils.isString(oFile):
H A Dwebservergluebase.py39 from common import webutils, utils; namespace
52 Web server interface abstraction and some HTML utils.
69 self.tsStart = utils.timestampNano();
583 tsNow = utils.timestampMilli();
/vbox/src/VBox/ValidationKit/tests/unittests/
H A DtdUnitTest1.py48 from common import utils; namespace
287 self.sExeSuff = '.exe' if utils.getHostOs() in [ 'win', 'dos', 'os2' ] else '';
320 if not self.oBuild.isDevBuild() and utils.getHostOs() == 'solaris':
321 sArchDir = utils.getHostArch();
326 if utils.getHostOs() == 'win':
338 sBinOrDist = 'dist' if utils.getHostOs() in [ 'darwin', ] else 'bin';
341 os.path.join(self.sScratchPath, sBinOrDist + '.' + utils.getHostArch()),
342 os.path.join(self.sScratchPath, sBinOrDist, utils.getHostArch()),
345 if utils.getHostOs() == 'darwin':
390 sVer = utils
[all...]

Completed in 87 milliseconds

12