blob: 14cf9db34531f6d42f626e3bccb486da28301ce7 (
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
|
'''
Created on Feb 15, 2016
__author__ = "Anibal (alimon) Limon"
__copyright__ = "Copyright 2016, Intel Corp."
__credits__ = ["Anibal Limon"]
__license__ = "GPL"
__version__ = "2.0"
__maintainer__ = "Anibal Limon"
__email__ = "anibal.limon@linux.intel.com"
'''
from lib.buildsteps import ShellCommandCleanEnv
import os
class ToasterStart(ShellCommandCleanEnv):
haltOnFailure = True
flunkOnFailure = True
name = "ToasterStart"
def __init__(self, factory, argdict=None, **kwargs):
self.factory = factory
self.description = "Starting toaster..."
oe_cmd = "source ./oe-init-build-env;"
venv_cmd = "source venv/bin/activate;"
start_cmd = "../bitbake/lib/toaster/tests/helpers.py -a start" \
" -d $(readlink -e ../)"
self.command = oe_cmd + venv_cmd + start_cmd
ShellCommandCleanEnv.__init__(self, factory, argdict, **kwargs)
|