In scan_result.py, it splits testname by 'kvm.', when the name of
test directory contains more than one 'kvm.', this script would
output a wrong name.

directory name : 'kvm.repeat1......qmp_command.qmp_query-kvm.qcow2'
output test name: 'repeat1......qmp_command.qmp_query-'

Signed-off-by: Amos Kong <[email protected]>
---
 client/tests/kvm/scan_results.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/scan_results.py b/client/tests/kvm/scan_results.py
index a339a85..97105fb 100755
--- a/client/tests/kvm/scan_results.py
+++ b/client/tests/kvm/scan_results.py
@@ -38,7 +38,7 @@ def parse_results(text):
             test_status = parts[0].split()[1]
             # Remove "kvm." prefix
             if test_name.startswith("kvm."):
-                test_name = test_name.split("kvm.")[1]
+                test_name = test_name[4:]
             result_list.append((test_name, test_status,
                                 int(end_time - start_time), info))
 

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to