Searched refs:utils (Results 1 - 25 of 98) sorted by relevance

1234

/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/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/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 Dtestboxscript_real.py55 from common import utils; namespace
126 if utils.getHostOs() in ('win', 'os2', 'haiku', 'dos'):
163 constants.tbreq.SIGNON_PARAM_OS: { self.VALUE: utils.getHostOs(), self.FN: None },
164 constants.tbreq.SIGNON_PARAM_OS_VERSION: { self.VALUE: utils.getHostOsVersion(), self.FN: None },
165 constants.tbreq.SIGNON_PARAM_CPU_ARCH: { self.VALUE: utils.getHostArch(), self.FN: None },
232 if utils.getHostOs() is 'win':
266 sHostOs = utils.getHostOs()
268 utils.sudoProcessCall(['/sbin/umount', sMountPoint]);
269 utils.sudoProcessCall(['/bin/mkdir', '-p', sMountPoint]);
270 utils
[all...]
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...]
H A Dtestboxconnection.py40 from common import utils namespace
189 'User-Agent': 'TestBoxScript/%s.0 (%s, %s)' % (__version__, utils.getHostOs(), utils.getHostArch()),
H A Dtestboxupgrade.py43 from common import utils; namespace
281 if utils.isRunningFromCheckout():
/vbox/src/VBox/ValidationKit/testdriver/
H A Dreporter.py45 from common import utils; namespace
63 #g_oReporter.log(0, 'python: %s' % (sText), utils.getCallerName(), utils.getTimePrefix());
153 return self.log(0, 'raw xml%s: %s' % (oFileWrapper.sPrefix, sRawXml), sCaller, utils.getTimePrefix());
201 (sTsPrf, sTsIso) = utils.getTimePrefixAndIsoTimestamp();
209 (sTsPrf, sTsIso) = utils.getTimePrefixAndIsoTimestamp();
216 (sTsPrf, sTsIso) = utils.getTimePrefixAndIsoTimestamp();
227 (sTsPrf, sTsIso) = utils.getTimePrefixAndIsoTimestamp();
294 self.fnGetIsoTimestamp = utils.getIsoTimestamp; # Hack to get a timestamp in __del__.
329 sTsIso = utils
[all...]
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...]
H A Dbase.py49 from common import utils; namespace
371 self.sDbgCreated = '%s: %s' % (utils.getTimePrefix(), sCaller);
531 TdTaskBase.__init__(self, utils.getCallerName());
627 utils.processCollectCrashInfo(self.uPid, reporter.log, self._addCrashFile);
791 self.sHost = utils.getHostOs();
792 self.sHostArch = utils.getHostArch();
797 if not utils.isRunningFromCheckout():
798 self.sBinPath = os.path.join(g_ksValidationKitDir, utils.getHostOs(), utils.getHostArch());
800 self.sBinPath = os.path.join(g_ksValidationKitDir, os.pardir, os.pardir, os.pardir, 'out', utils
[all...]
H A Dtst-txsclient.py41 from common import utils; namespace
183 oLocalFile = utils.openNoInherit(strUpFile, 'w+b');
200 oLocalFile = utils.openNoInherit(strDwnFile, "rb");
/vbox/src/VBox/ValidationKit/testmanager/core/
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);
/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...]
/vbox/src/VBox/ValidationKit/testmanager/batch/
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:
H A Dvcs_import.py46 from common import utils; namespace
114 sLogXml = utils.processOutputChecked(asArgs);
/vbox/src/VBox/Additions/x11/VBoxClient/
H A DVBoxClient.h22 #include <iprt/cpp/utils.h>
/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 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]),
/vbox/include/iprt/cpp/
H A Dautores.h31 #include <iprt/cpp/utils.h>
/vbox/src/VBox/Main/src-server/
H A DHostPower.cpp32 #include <iprt/cpp/utils.h>

Completed in 1555 milliseconds

1234