[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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')
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]