Kouhei Sutou
null+****@clear*****
Fri Feb 8 23:26:44 JST 2013
Kouhei Sutou 2013-02-08 23:26:44 +0900 (Fri, 08 Feb 2013) New Revision: 74699e1a4cbf6fbc0d35eded80403babec1b66a6 https://github.com/groonga/grntest/commit/74699e1a4cbf6fbc0d35eded80403babec1b66a6 Log: Support X.Xe-X type elapsed time For example: 9.60826873779297e-05 Modified files: lib/grntest/tester.rb Modified: lib/grntest/tester.rb (+2 -2) =================================================================== --- lib/grntest/tester.rb 2012-12-21 11:48:21 +0900 (e788287) +++ lib/grntest/tester.rb 2013-02-08 23:26:44 +0900 (9e5bc48) @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2012 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2012-2013 Kouhei Sutou <kou �� clear-code.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1114,7 +1114,7 @@ EOF def normalize_output_xml(content, options) content.sub(/^<RESULT .+?>/) do |result| - result.gsub(/( (?:UP|ELAPSED))="\d+\.\d+"/, '\1="0.0"') + result.gsub(/( (?:UP|ELAPSED))="\d+\.\d+(?:e[+-]?\d+)?"/, '\1="0.0"') end end -------------- next part -------------- HTML����������������������������...다운로드