def stopTest(self, test): """Called when the given test has been run. If the stop flag was raised beforehand, will broadcast to raise flags for global stop.""" stop_flags = np.empty(self.comm.size, dtype=bool) self.comm.all_gather(np.array([self.shouldStop]), stop_flags) self.shouldStop = stop_flags.any() TestResult.stopTest(self, test)
def stopTest(self, test): stopTime = time.time() deltaTime = stopTime - self._startTime TestResult.stopTest(self, test) self.stream.write(' time="%.3f"' % deltaTime) self.stream.write('>') if self._lastWas != 'success': if self._lastWas == 'error': self.stream.write(self._errorsAndFailures) elif self._lastWas == 'failure': self.stream.write(self._errorsAndFailures) else: assert(False) seen = {} for assertion in test._extraAssertions: if not seen.has_key(assertion): self._addAssertion(assertion[:110]) # :110 avoids tl;dr TODO use a lexical truncator seen[assertion] = True self.stream.write('</testcase>') self._errorsAndFailures = "" if test._extraXML != '': self.stream.write(test._extraXML)
def stopTest(self, test): """Called when the given test has been run. If the stop flag was raised beforehand, will broadcast to raise flags for global stop.""" stop_flags = np.empty(self.comm.size, dtype=bool) self.comm.all_gather(np.array([self.shouldStop]), stop_flags) self.shouldStop = stop_flags.any() TestResult.stopTest(self, test)
def stopTest(self, test): """ Called after execute each test method. """ self._save_output_data() TestResult.stopTest(self, test) self.stop_time = time.time() if self.callback and callable(self.callback): self.callback() self.callback = None
def stopTest(self, test): TestResult.stopTest(self, test) logger.setLogOff() logger.info("Stop Test".center(20, "*")) logger.info(self.getDescription(test)) logger.info( "STOP: %s" % (time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))) + " || Current Cycle:" + str(TestController.getInstance().getCurrentCycle()) + " || Current Order:" + str(TestController.getInstance().getCurrentcaseOrder()))
def stopTest(self, test): """ Method called at the end of a test. @param test Reference to the test object """ TestResult.stopTest(self, test) self.parent.write('{0}\n'.format(ResponseUTStopTest)) # ensure that pending input is processed rrdy, wrdy, xrdy = select.select([self.parent.readstream],[],[], 0.01) if self.parent.readstream in rrdy: self.parent.readReady(self.parent.readstream.fileno())
def stopTest(self, test): """ Method called at the end of a test. @param test Reference to the test object """ TestResult.stopTest(self, test) self.parent.write('%s\n' % ResponseUTStopTest) # ensure that pending input is processed rrdy, wrdy, xrdy = select.select([self.parent.readstream],[],[], 0.01) if self.parent.readstream in rrdy: self.parent.readReady(self.parent.readstream.fileno())
def stopTest(self, test): """ Public method called at the end of a test. @param test Reference to the test object """ TestResult.stopTest(self, test) self.__dbgClient.sendJsonCommand("ResponseUTStopTest", {}) # ensure that pending input is processed rrdy, wrdy, xrdy = select.select( [self.__dbgClient.readstream], [], [], 0.01) if self.__dbgClient.readstream in rrdy: self.__dbgClient.readReady(self.__dbgClient.readstream)
def stopTest(self, test): stopTime = time.time() deltaTime = stopTime - self._startTime TestResult.stopTest(self, test) self.stream.write(' time="%.3f"' % deltaTime) if self._lastWas == 'success': self.stream.write('/>') else: self.stream.write('>') if self._lastWas == 'error': self.stream.write(self._errorsAndFailures) elif self._lastWas == 'failure': self.stream.write(self._errorsAndFailures) else: assert(False) self.stream.write('</testcase>') self._errorsAndFailures = ""
def stopTest(self, test): TestResult.stopTest(self, test) self.step.setProgress('tests', self.testsRun)
def stopTest(self, test): TestResult.stopTest(self, test) self.step.setProgress('tests', self.testsRun)
def stopTest(self, test): TestResult.stopTest(self, test) self._writeToStream("\n") self.printTestErrLog(test, 3)
def stopTest(self, test): TestResult.stopTest(self, test) self.logger.debug('STOP')
def stopTest(self, test): TestResult.stopTest(self, test) self._writeToStream("\n") self.printTestErrLog(test, 3)
def stopTest(self, test): TestResult.stopTest(self, test) self.logger.debug('STOP')
def stopTest(self, test): self.results_log[test.id()][2] = time.time() - self.test_start_at return TestResult.stopTest(self, test)