From 32608af4f50eb36f52fa5bd5cf34b4c9dea40c0b Mon Sep 17 00:00:00 2001 From: Alex Overchenko Date: Thu, 3 Dec 2020 16:49:49 +0300 Subject: [PATCH] Test passing time will be in seconds now (for xml output) (cherry picked from commit 39d54e2913b0c3a18106a13705fed2fb8ab7f4b0) --- auto/parse_output.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/auto/parse_output.rb b/auto/parse_output.rb index 92d62d9..8d541f1 100644 --- a/auto/parse_output.rb +++ b/auto/parse_output.rb @@ -82,19 +82,19 @@ class ParseOutput # Pushes xml output data to the array list, which will be written later def push_xml_output_passed(test_name, execution_time = 0) - @array_list.push ' ' + @array_list.push ' ' end # Pushes xml output data to the array list, which will be written later def push_xml_output_failed(test_name, reason, execution_time = 0) - @array_list.push ' ' + @array_list.push ' ' @array_list.push ' ' + reason + '' @array_list.push ' ' end # Pushes xml output data to the array list, which will be written later def push_xml_output_ignored(test_name, reason, execution_time = 0) - @array_list.push ' ' + @array_list.push ' ' @array_list.push ' ' + reason + '' @array_list.push ' ' end @@ -240,6 +240,7 @@ class ParseOutput push_xml_output_ignored(test_name, reason, test_time) if @xml_out end + # Test time will be in ms def get_test_time(value_with_time) test_time_array = value_with_time.scan(/\((-?\d+.?\d*) ms\)\s*$/).flatten.map do |arg_value_str| arg_value_str.include?('.') ? arg_value_str.to_f : arg_value_str.to_i