view autobot/projects/logparser/__init__.py @ 276:a79c12daf9d7

hopefully fix profilemanager factory
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 31 Jul 2012 14:35:32 -0700
parents 336702f58075
children
line wrap: on
line source

from autobot.process.factory import PythonSourceFactory
from buildbot.steps.shell import ShellCommand
from buildbot.steps.shell import WithProperties

class TestLogParserFactory(PythonSourceFactory):
  """
  factory to test the Mozilla log parser:
  http://hg.mozilla.org/automation/logparser/
  """

  sources = {'hg': 'http://hg.mozilla.org/automation/logparser/'}

  def __init__(self):

    # setup the environment and install the python
    PythonSourceFactory.__init__(self, name='logparser')

    # run the tests
    self.addStep(ShellCommand(command=[WithProperties('%(python)s'), 'test_logparser.py'],
                              workdir=WithProperties('%(virtualenv)s/src/logparser/logparser'),
                              description='test logparser'))