Bugfixiong after modification in -r and -R options

pull/385/head
Przemek Wirkus 2014-07-02 15:01:02 +01:00
parent 41f703c594
commit 1a7c96d10b
2 changed files with 4 additions and 4 deletions

View File

@ -407,7 +407,7 @@ def get_avail_tests_summary_table(cols=None, result_summary=True, join_delim=','
counter_dict_test_id_types = dict((t, 0) for t in unique_test_id) counter_dict_test_id_types = dict((t, 0) for t in unique_test_id)
counter_dict_test_id_types_all = dict((t, 0) for t in unique_test_id) counter_dict_test_id_types_all = dict((t, 0) for t in unique_test_id)
test_properties = ['id', 'automated', 'description', 'peripherals', 'host_test', 'duration', 'mcu'] if cols is None else cols test_properties = ['id', 'automated', 'description', 'peripherals', 'host_test', 'duration'] if cols is None else cols
# All tests status table print # All tests status table print
pt = PrettyTable(test_properties) pt = PrettyTable(test_properties)

View File

@ -847,14 +847,14 @@ GROUPS.update(TEST_GROUPS)
class Test: class Test:
DEFAULTS = { DEFAULTS = {
'mcu': None, #'mcu': None,
'description': None, 'description': None,
'dependencies': None, 'dependencies': None,
'duration': 10, 'duration': 10,
'host_test': 'host_test', 'host_test': 'host_test',
'automated': False, 'automated': False,
'peripherals': None, 'peripherals': None,
'supported': None, #'supported': None,
'source_dir': None, 'source_dir': None,
'extra_files': None 'extra_files': None
} }
@ -871,7 +871,7 @@ class Test:
return (target in self.supported) and (toolchain in self.supported[target]) return (target in self.supported) and (toolchain in self.supported[target])
def get_description(self): def get_description(self):
if hasattr(self, 'description'): if self.description:
return self.description return self.description
else: else:
return self.id return self.id