コード例 #1
0
ファイル: annotator_test.py プロジェクト: kusoof/wprof
    def setUp(self):
        self.step = chromium_step.AnnotatedCommand(
            name='annotated_steps',
            description='annotated_steps',
            command=FakeCommand())

        self.step_status = FakeBuildstepStatus()
        self.step.setStepStatus(self.step_status)
        self.handleOutputLine = self.step.script_observer.handleOutputLine
コード例 #2
0
  def setUp(self):
    self.buildstatus = FakeBuildStatus()
    self.command = FakeCommand()
    self.step = chromium_step.AnnotatedCommand(name='annotated_steps',
                                               description='annotated_steps',
                                               command=self.command)
    self.step_status = self.buildstatus.addStepWithName('annotated_steps')
    self.step.setStepStatus(self.step_status)
    self.command.status = self.step_status

    preamble = self.command.addLog('preamble')
    self.step.script_observer.addSection('annotated_steps',
                                         step=self.step_status)
    self.step.script_observer.sections[0]['log'] = preamble
    self.step.script_observer.sections[0]['started'] = time.time()
    self.step.script_observer.cursor = self.step.script_observer.sections[0]