# HG changeset patch # User Jeff Hammel # Date 1294779463 28800 # Node ID 849bbc2e557292827916e7a494f3335bd66975cf # Parent fbd4a34d8e42928d187dcaa98140f377c02d4ec2 first use of project template -> devicemanager diff -r fbd4a34d8e42 -r 849bbc2e5572 autobot/projects/devicemanager/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autobot/projects/devicemanager/__init__.py Tue Jan 11 12:57:43 2011 -0800 @@ -0,0 +1,18 @@ +from buildbot.process.factory import BuildFactory +from buildbot.steps.shell import ShellCommand +from buildbot.steps.shell import WithProperties + +class TestDevicemanager(BuildFactory): + """ + devicemanager for mobile testing: + http://hg.mozilla.org/automation/remote-testing/ + """ + + def __init__(self): + BuildFactory.__init__(self) + + # checkout the repository + #self.addStep(ShellCommand(command=['hg', 'clone', 'http://hg.mozilla.org/automation/remote-testing/'])) + + # run the tests [TODO] + diff -r fbd4a34d8e42 -r 849bbc2e5572 autobot/template.py --- a/autobot/template.py Tue Jan 11 12:43:08 2011 -0800 +++ b/autobot/template.py Tue Jan 11 12:57:43 2011 -0800 @@ -178,6 +178,8 @@ projectdir = os.path.join(here, 'projects', project) if os.path.exists(projectdir): assert os.path.isdir(projectdir) + else: + os.makedirs(projectdir) output = os.path.join(projectdir, '__init__.py') assert not os.path.exists(output), "Project '%s' already exists" % project