2 from Remote import Remote
3 from Table import Table
5 class Slice(dict, Remote):
8 'plcs': ['TestPLC'], # which plc does this slice belong to
10 'instantiation': 'plc-instantiated',
12 'description': 'blank',
14 'key': None, # any valid ssh key
15 'nodes': [], # nodes where this slice runs
16 'tests_path': '/usr/share/tests/',
17 'tests': [] # which test to run. None or empty list means run all
20 def __init__(self, fields = {}):
22 dict.__init__(self, self.fields)
27 def __init__(self, slices):
28 slicelist = [Slice(slice) for slice in slices]
29 Table.__init__(self, slicelist)