blob: e9de3c76ce3c41048bee017b37c71ed3b05995a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
'''
Created on Jan 6, 2013
__author__ = "Elizabeth 'pidge' Flanagan"
__copyright__ = "Copyright 2012-2013, Intel Corp."
__credits__ = ["Elizabeth Flanagan"]
__license__ = "GPL"
__version__ = "2.0"
__maintainer__ = "Elizabeth Flanagan"
__email__ = "pidge@toganlabs.com"
'''
from buildbot.steps.shell import ShellCommand
class RunPreamble(ShellCommand):
haltOnFailure = False
flunkOnFailure = True
name = "RunPreamble"
def __init__(self, factory, argdict=None, **kwargs):
self.factory = factory
self.altcmd = ""
for k, v in argdict.iteritems():
setattr(self, k, v)
self.description = "Running Preamble"
if self.altcmd == "":
self.command = ". ./oe-init-build-env"
else:
self.command = ". ./" + self.altcmd
ShellCommand.__init__(self, **kwargs)
|