pymtt
 All Classes Namespaces Files Functions Variables Groups
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 # @}
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