blob: 2d3a68bc1a498b86e3f0a8ab088e7ac2492d410d (
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
31
32
33
34
35
36
37
|
'''
Created on March 11, 2016
__author__ = "Elizabeth 'pidge' Flanagan"
__copyright__ = "Copyright 2012-2016, Intel Corp."
__credits__ = ["Elizabeth Flanagan"]
__license__ = "GPL"
__version__ = "2.0"
__maintainer__ = "Elizabeth Flanagan"
__email__ = "pidge@toganlabs.com"
'''
from buildbot.steps.shell import ShellCommand
from twisted.python import log
import os, datetime
from autobuilder.config import *
class SetupDistroData(ShellCommand):
haltOnFailure = False
flunkOnFailure = True
name = "Publishing Artifacts"
def __init__(self, factory, argdict=None, **kwargs):
self.factory = factory
self.description = "Setting Up DistroData"
self.dvdir=os.path.join(os.path.join(YOCTO_ABBASE, "etc/distro-version"))
for k, v in argdict.iteritems():
if type(v) is bool:
setattr(self, k, str(v))
else:
setattr(self, k, v)
self.timeout = 100000
kwargs['timeout']=self.timeout
ShellCommand.__init__(self, **kwargs)
def start(self):
self.command="cp -R " + self.dvdir + "/* /tmp;"
ShellCommand.start(self)
|