Hi Dror Russo

Anitha from my team wants to push some of the Infiniband test written by
late Higor to Autotest upstream. While she was testing the code, test
passes but throws error while generating html_report.
So I debugged the code and analyzed where does it fail and found
keyvalue error in parse_result. Patch below fixes the problem but I am
not sure which other tests result generation might fail with my fix.

Just FYI: Infiniband test has many sub test, like subtest1, subtest2.
Each of the control file invokes run_test with arguments as
job.run_test(url = 'Infiniband/ofed_IBVT_ibv_rc_pingpong', config =
"ofed_community.cfg").
If you could suggest work around for invoking job_runtest incase of
multiple subtest that also is fine. Else it looks like parse_result
needs a better fix to handle. 


--- html_report.py_orig 2012-07-14 11:21:11.819706779 -0400
+++ /usr/local/auto/autotest-autotest-bc43caf/client/tools/html_report.py       
2012-07-14 11:22:24.572706871 -0400
@@ -1542,7 +1542,7 @@ def parse_result(dirname, line, results_
         stime = int(pair[1])
         results_data[parts[1]] = [stime, [], None]
         try:
-            parent_test = re.findall(r".*/", parts[1])[0][:-1]
+            parent_test = parts[1]
             results_data[parent_test][1].append(parts[1])
         except IndexError:
             results_data[""][1].append(parts[1])


Regards
Poornima

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to