| |
@@ -64,6 +64,12 @@
|
| |
outcome = yield
|
| |
rep = outcome.get_result()
|
| |
title_regex = re.compile("^.[T|t]itle\s*:\s*.*")
|
| |
+ try:
|
| |
+ test_ids = item.__dict__['callspec']._idlist
|
| |
+ except KeyError:
|
| |
+ test_params = ''
|
| |
+ else:
|
| |
+ test_params = ''.join(test_ids)
|
| |
if item._obj.__doc__:
|
| |
doc_strings = item._obj.__doc__.strip()
|
| |
doc_list = re.sub('(\n\s*[:|@][A-Za-z0-9_-]*:)', '\n\\1',
|
| |
@@ -92,7 +98,7 @@
|
| |
tc_title = ' '.join([tc.strip() for tc in doc_list[tc_start: tc_end]])
|
| |
else:
|
| |
tc_title = ''.join(doc_list[tc_start])
|
| |
- tc_name = re.sub("^.[T|t]itle\s*:\s*", "", tc_title)
|
| |
+ tc_name = re.sub("^.[T|t]itle\s*:\s*", "", tc_title + ' ' + test_params)
|
| |
rep.nodeid = '::'.join(rep.nodeid.split('::')[0:-1]) + \
|
| |
'::' + tc_name
|
| |
if 'call' in rep.when:
|
| |
Fixes Issue: #8
Signed-off-by: Niranjan M.R mrniranjan@redhat.com