[libvirt] [test-API][PATCH] Fix the repeating display of testcase name issue when generating log.xml

hongming honzhang at redhat.com
Fri Aug 16 08:56:57 UTC 2013


On 08/16/2013 04:04 PM, Guannan Ren wrote:
> On 08/16/2013 02:36 PM, Hongming Zhang wrote:
>> modified:   src/log_generator.py
>> ---
>>   src/log_generator.py |    3 ++-
>>   1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/log_generator.py b/src/log_generator.py
>> index de18654..7685da7 100644
>> --- a/src/log_generator.py
>> +++ b/src/log_generator.py
>> @@ -70,7 +70,8 @@ class LogGenerator(object):
>>           valuedict = test_procedure[casename]
>>             test_casename = self.doc.createElement('action')
>> -        test_casename.setAttribute('name', casename)
>> +        casenamexml = casename[:casename.rfind(":")]
>> +        test_casename.setAttribute('name', casenamexml)
>>             for arg in valuedict.keys():
>>               test_arg = self.doc.createElement('arg')
>
> Hi HongMing
>
> you fixed the problem in not right way, you need to change the 
> casename in the source
> rather than do the string slice in there.
>
>
Hi Guannan

Ok . I see, I will try to fix it in v2.
Thanks





More information about the libvir-list mailing list