pymtt
Main Page
Modules
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Groups
pylib
Stages
Firmware
FooFlash.py
Go to the documentation of this file.
1
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: f; python-indent: 4 -*-
2
#
3
# Copyright (c) 2015-2018 Intel, Inc. All rights reserved.
4
# $COPYRIGHT$
5
#
6
# Additional copyrights may follow
7
#
8
# $HEADER$
9
#
10
11
12
from
__future__
import
print_function
13
from
FirmwareMTTStage
import
*
14
15
## @addtogroup Stages
16
# @{
17
# @addtogroup Firmware
18
# @section FooFlash
19
# @}
20
class
FooFlash
(
FirmwareMTTStage
):
21
22
def
__init__
(self):
23
# initialise parent class
24
FirmwareMTTStage.__init__(self)
25
self.
options
= {}
26
27
def
activate
(self):
28
# get the automatic procedure from IPlugin
29
IPlugin.activate(self)
30
return
31
32
def
deactivate
(self):
33
IPlugin.deactivate(self)
34
return
35
36
def
print_name
(self):
37
return
"FooFlash"
38
39
def
print_options
(self, testDef, prefix):
40
lines = testDef.printOptions(self.
options
)
41
for
line
in
lines:
42
print(prefix + line)
43
44
def
execute
(self, log, keyvals, testDef):
45
# execute whatever commands are provided, recording
46
# the results in the log
47
log[
'status'
] = 1
48
log[
'stderr'
] =
"Not implemented"
49
return
FooFlash.FooFlash.__init__
def __init__
Definition:
FooFlash.py:22
FooFlash.FooFlash
Definition:
FooFlash.py:20
FooFlash.FooFlash.activate
def activate
Definition:
FooFlash.py:27
FooFlash.FooFlash.print_name
def print_name
Definition:
FooFlash.py:36
FirmwareMTTStage.FirmwareMTTStage
Definition:
FirmwareMTTStage.py:19
FooFlash.FooFlash.print_options
def print_options
Definition:
FooFlash.py:39
FooFlash.FooFlash.execute
def execute
Definition:
FooFlash.py:44
FooFlash.FooFlash.deactivate
def deactivate
Definition:
FooFlash.py:32
FooFlash.FooFlash.options
options
Definition:
FooFlash.py:25
Generated by
1.8.6