Index: lnt/trunk/lnt/lnttool/import_report.py =================================================================== --- lnt/trunk/lnt/lnttool/import_report.py +++ lnt/trunk/lnt/lnttool/import_report.py @@ -41,7 +41,10 @@ for line in input.readlines(): key, val = line.split() - test = lnt.testing.TestSamples(suite + "." + key, [val]) + metric = key.split(".")[1] + metric_type = float if metric not in ("hash", "profile") else str + test = lnt.testing.TestSamples(suite + "." + key, [val], conv_f = metric_type) + report.tests.extend([test]) output.write(report.render()) Index: lnt/trunk/tests/lnttool/test_importreport.py =================================================================== --- lnt/trunk/tests/lnttool/test_importreport.py +++ lnt/trunk/tests/lnttool/test_importreport.py @@ -2,5 +2,7 @@ # # RUN: echo "foo.exec 10" > input # RUN: echo "bar.exec 20" >> input +# RUN: echo "foo.hash d7" >> input +# RUN: echo "bar.profile Xz6/" >> input # RUN: lnt importreport --testsuite nts --order 123 --machine foo input output.json # RUN: cat output.json