Lines Matching defs:utils

45 from common import utils;
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.getIsoTimestamp();
330 self.oLogFile = utils.openNoInherit(sLogName, "w");
341 self.oXmlFile = utils.openNoInherit(sXmlName, "w");
438 oDstFile = utils.openNoInherit(sDstFilename, 'w');
462 % (utils.getIsoTimestamp(), self._xmlEscAttr(os.path.basename(sDstFilename)), self._xmlEscAttr(sSrcFilename), \
473 oFileWrapper.oSubXmlFile = utils.openNoInherit(sSubXmlName, "w");
479 % (utils.getIsoTimestamp(), self._xmlEscAttr(os.path.basename(sSubXmlName))));
530 self._secTsXmlFlush = utils.timestampSecond();
563 'User-Agent': 'TestDriverReporter/%s.0 (%s, %s)' % (__version__, utils.getHostOs(), utils.getHostArch(),),
609 % (utils.getTimePrefix(), sOperation, oXcpt, oXcpt.expected, len(oXcpt.partial),));
630 % (utils.getTimePrefix(), sOperation, sResult, dResponse,));
633 self._writeOutput('%s: %s: Failed - dResponse=%s' % (utils.getTimePrefix(), sOperation, dResponse,));
635 self._writeOutput('%s: %s: Unexpected Content-Type: %s' % (utils.getTimePrefix(), sOperation, sContentType,));
636 self._writeOutput('%s: %s: Body: %s' % (utils.getTimePrefix(), sOperation, sRspBody,));
645 self._writeOutput('%s: _doUploadFile: sHeader=%s' % (utils.getTimePrefix(), dHeader,));
647 self._writeOutput('%s: _doUploadFile: size=%d' % (utils.getTimePrefix(), oSrcFile.tell(),));
660 secStart = utils.timestampSecond();
672 if utils.timestampSecond() - secStart >= self.kcSecTestManagerRetryTimeout:
673 self._writeOutput('%s: _doUploadFile: Timed out.' % (utils.getTimePrefix(),));
679 self._writeOutput('%s: _doUploadFile: Retrying...' % (utils.getTimePrefix(), ));
689 secStart = utils.timestampSecond();
717 or utils.timestampSecond() - secStart >= self.kcSecTestManagerRetryTimeout:
779 self._secTsXmlFlush = utils.timestampSecond();
784 self._secTsXmlFlush = utils.timestampSecond();
789 tsNow = utils.timestampSecond();
852 sTsPrf = utils.getTimePrefix();
862 sCaller = utils.getCallerName(oTraceback.tb_frame);
893 % (utils.getCallerName(iFrame=3)), utils.getCallerName(iFrame=3), sTsPrf);
921 sTsPrf = utils.getTimePrefix();
922 sCaller = utils.getCallerName();
972 g_oReporter.subXmlWrite(self, sText, utils.getCallerName());
986 rc = g_oReporter.log(1, sText, utils.getCallerName(), utils.getTimePrefix());
1003 rc = g_oReporter.log(2, sText, utils.getCallerName(), utils.getTimePrefix());
1052 g_oReporter.log(0, 'error: %s' % (sText), utils.getCallerName(), utils.getTimePrefix());
1083 g_oReporter.log(0, 'timeout-error: %s' % (sText), utils.getCallerName(), utils.getTimePrefix());
1101 g_oReporter.log(0, 'fatal error: %s' % (sText), utils.getCallerName(), utils.getTimePrefix());
1132 sTsPrf = utils.getTimePrefix();
1133 sCaller = utils.getCallerName();
1139 oSrcFile = utils.openNoInherit(sFilename, 'rb');
1185 rc = g_oReporter.testStart(sName, utils.getCallerName());
1194 rc = g_oReporter.testValue(sName, str(sValue), sUnit, utils.getCallerName());
1206 g_oReporter.testFailure(sDetails, utils.getCallerName());
1223 sCaller = utils.getCallerName(oTraceback.tb_frame);
1226 sCaller = utils.getCallerName();
1245 rc = g_oReporter.testDone(fSkipped, utils.getCallerName());
1267 fRc = g_oReporter.testCleanup(utils.getCallerName());
1283 oSrcFile = utils.openNoInherit(sFilename, 'r');
1309 sTsPrf = utils.getTimePrefix();
1310 sCaller = utils.getCallerName();