Lines Matching defs:reporter

51 from testdriver             import reporter;
104 if sLocalAlternative is None or not reporter.isLocal():
132 reporter.error('the value of env.var. "%s" is not a dir: "%s"' % (sVar, sVal));
137 reporter.error('makedirs failed on the value of env.var. "%s": "%s"' % (sVar, sVal));
141 if reporter.isLocal() and fLocalReq:
172 reporter.errorXcpt('gethostbyname(%s)' % (sName));
175 reporter.error('gethostbyname(%s) -> %s' % (sName, sIpAddr));
195 reporter.logXcpt('uPid=%s' % (uPid,));
215 reporter.logXcpt('uPid=%s' % (uPid,));
232 reporter.logXcpt('uPid=%s' % (uPid,));
248 reporter.logXcpt('uPid=%s' % (uPid,));
278 reporter.logXcpt('uPid=%s' % (uPid,));
304 reporter.logXcpt();
402 reporter.error('!!! timed out waiting for %s' % (self, ));
404 reporter.logAllStacks()
441 reporter.log2('signalTaskLocked(%s)' % (self,));
571 reporter.logXcpt('sName=%s' % (sName,));
604 reporter.logXcpt();
614 reporter.logXcpt();
621 reporter.log('Process %u -> %u (%#x)' % (uPid, uStatus, uStatus));
624 reporter.error('Process "%s" returned/crashed with a non-zero status code!! rc=%u sig=%u%s (raw=%#x)'
627 utils.processCollectCrashInfo(self.uPid, reporter.log, self._addCrashFile);
640 reporter.addLogFile(sFile, sKind);
751 reporter.log('');
752 reporter.log('Options for sub-test driver %s:' % (self.sName,));
840 reporter.log('scratch: %s' % (self.sScratchPath,));
911 reporter.errorXcpt('os.listdir("%s")' % (sDir));
921 reporter.errorXcpt('lstat("%s")' % (sFullName));
931 reporter.errorXcpt('rmdir("%s")' % (sFullName));
938 reporter.errorXcpt('remove("%s")' % (sFullName));
962 reporter.error('Attempt at adding sub-test driver %s twice.' % (oSubTstDrv.sName,));
1003 #reporter.log2('adding task %s' % (oTask,));
1006 #reporter.log2('tasks now in list: %d - %s' % (len(self.aoTasks), self.aoTasks));
1016 #reporter.log2('removing task %s' % (oTask,));
1022 #reporter.log2('tasks left: %d - %s' % (len(self.aoTasks), self.aoTasks));
1072 reporter.log("waitForTasksSleepWorker: %s" % (str(oXcpt),));
1081 #reporter.log2('waitForTasks: cMsTimeout=%d' % (cMsTimeout,));
1101 #reporter.log2('waitForTasks: returning %s, msStart=%d' % \
1114 reporter.errorXcpt('KeyboardInterrupt', 6);
1116 reporter.errorXcpt(None, 6);
1135 reporter.errorXcpt();
1144 reporter.logXcpt('sPid=%s' % (sPid,));
1146 reporter.log('%s: "%s"' % (self.sPidFile, sPid));
1160 reporter.errorXcpt();
1162 reporter.log2('pidFileAdd: added PID %d (new content: %s)' % (iPid, self.pidFileRead(),));
1172 reporter.log('pidFileRemove could not find %s in the PID file (content: %s)' % (iPid, aiPids));
1185 reporter.errorXcpt();
1188 reporter.log2('pidFileRemove: removed PID %d (new content: %s)' % (iPid, self.pidFileRead(),));
1197 reporter.logXcpt();
1244 reporter.log('adjusting timeout: %s ms -> %s ms (deadline)\n' % (cMsTimeout, cMsToDeadline,));
1251 reporter.log('adjusting timeout: %s ms -> %s ms (minimum)\n' % (cMsTimeout, cMsMinimum,));
1281 reporter.log('Usage: %s [options] <action(s)>' % (sName,));
1282 reporter.log('');
1283 reporter.log('Actions (in execution order):');
1284 reporter.log(' cleanup-before');
1285 reporter.log(' Cleanups done at the start of testing.');
1286 reporter.log(' verify');
1287 reporter.log(' Verify that all necessary resources are present.');
1288 reporter.log(' config');
1289 reporter.log(' Configure the tests.');
1290 reporter.log(' execute');
1291 reporter.log(' Execute the tests.');
1292 reporter.log(' cleanup-after');
1293 reporter.log(' Cleanups done at the end of the testing.');
1294 reporter.log('');
1295 reporter.log('Special Actions:');
1296 reporter.log(' all');
1297 reporter.log(' Alias for: %s' % (' '.join(self.asNormalActions),));
1298 reporter.log(' extract <path>');
1299 reporter.log(' Extract the test resources and put them in the specified');
1300 reporter.log(' path for off side/line testing.');
1301 reporter.log(' abort');
1302 reporter.log(' Aborts the test.');
1303 reporter.log('');
1304 reporter.log('Base Options:');
1305 reporter.log(' -h, --help');
1306 reporter.log(' Show this help message.');
1307 reporter.log(' -v, --verbose');
1308 reporter.log(' Increase logging verbosity, repeat for more logging.');
1309 reporter.log(' -d, --debug');
1310 reporter.log(' Increase the debug logging level, repeat for more info.');
1311 reporter.log(' --no-wipe-clean');
1312 reporter.log(' Do not wipe clean the scratch area during the two clean up');
1313 reporter.log(' actions. This is for facilitating nested test driver execution.');
1337 reporter.incVerbosity()
1339 reporter.incDebug()
1366 Returns success indicator. Use the reporter to complain.
1384 Returns a success indicator and error details with the reporter.
1388 reporter.error('the extract action is not implemented')
1394 Returns a success indicator and error details with the reporter.
1403 reporter.error('Double slash test resource name: "%s"' % (sRsrc));
1409 reporter.error('Relative path in test resource name: "%s"' % (sRsrc));
1414 reporter.error('sFull="%s" self.sResourcePath=%s' % (sFull, self.sResourcePath));
1415 reporter.error('The resource "%s" seems to specify a relative path' % (sRsrc));
1418 reporter.log2('Checking for resource "%s" at "%s" ...' % (sRsrc, sFull));
1424 reporter.error('The file resource "%s" cannot be accessed: %s' % (sFull, oXcpt));
1428 reporter.error('The directory resource "%s" cannot be accessed' % (sFull));
1431 reporter.error('The resource "%s" is not a file or directory' % (sFull));
1434 reporter.error('The resource "%s" was not found' % (sFull));
1442 posting complaints and explanations with the reporter.
1453 posting complaints and explanations with the reporter.
1467 posting complaints and explanations with the reporter.
1480 explanations with the reporter.
1494 explanations with the reporter.
1501 reporter.log('The pid file contained: %s' % (aiPids,));
1521 reporter.log('%s terminated' % (iPid,));
1526 reporter.log('All done.');
1530 reporter.log('Still waiting for: %s (method=%s)' % (aiPids, fnMethod,));
1532 reporter.log('Failed to terminate the following processes: %s' % (aiPids,));
1571 reporter.logXcpt();
1597 reporter.error(oXcpt.str());
1600 reporter.error('unexpected exception while parsing argument #%s' % (iArg));
1608 reporter.error('no action was specified');
1609 reporter.error('valid actions: %s' % (self.asNormalActions + self.asSpecialActions + ['all']));
1616 reporter.log('*** extract action ***');
1619 reporter.log('*** extract action completed (fRc=%s) ***' % (fRc));
1621 reporter.log('*** abort action ***');
1624 reporter.log('*** abort action completed (fRc=%s) ***' % (fRc));
1630 reporter.log('*** verify action ***');
1633 if fRc is True: reporter.log("verified succeeded");
1634 else: reporter.log("verified failed (fRc=%s)" % (fRc,));
1635 reporter.log('*** verify action completed (fRc=%s) ***' % (fRc,));
1638 reporter.log('*** cleanup-before action ***');
1641 if fRc2 is not True: reporter.log("cleanup-before failed");
1643 reporter.log('*** cleanup-before action completed (fRc2=%s, fRc=%s) ***' % (fRc2, fRc,));
1649 reporter.log('*** config action ***');
1651 if fRc is True: reporter.log("config succeeded");
1652 else: reporter.log("config failed");
1653 reporter.log('*** config action completed (fRc=%s) ***' % (fRc,));
1657 reporter.log('*** execute action ***');
1659 if fRc is True: reporter.log("execute succeeded");
1660 else: reporter.log("execute failed (fRc=%s)" % (fRc,));
1661 reporter.testCleanup();
1662 reporter.log('*** execute action completed (fRc=%s) ***' % (fRc,));
1665 reporter.log('*** cleanup-after action ***');
1668 if fRc2 is not True: reporter.log("cleanup-after failed");
1670 reporter.log('*** cleanup-after action completed (fRc2=%s, fRc=%s) ***' % (fRc2, fRc,));
1675 reporter.error('unhandled actions: %s' % (asActions,));
1680 reporter.log('*****************************************');
1681 reporter.log('*** The test driver SKIPPED the test. ***');
1682 reporter.log('*****************************************');
1685 reporter.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
1686 reporter.error('!!! The test driver FAILED (in case we forgot to mention it). !!!');
1687 reporter.error('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
1689 reporter.log('*******************************************');
1690 reporter.log('*** The test driver exits successfully. ***');
1691 reporter.log('*******************************************');