grntest 1.7.8 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/grntest/test-runner.rb +25 -1
- data/lib/grntest/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc54d010d9865952353911ecc275801053b4a33027ca51f2aa24dc5ccefda73e
|
4
|
+
data.tar.gz: 0e3fc69315e00ba579d90988545ae56876077e142bb198e566cbbc533493bcd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ac681e98e4bcb909d9fe459170f08dc5dd8341bc0d7a271c37a6a0487959613a19bef3ebbf26c652fb3cccf4dad0502a86b75ca55eb4192bcb60bd93ea44f1
|
7
|
+
data.tar.gz: a00c7d255075208623c5513ea2d905a83176444903a2f6dd6d51e353f6ba7f8d377c8923756eda27a97154e7f07f58d47bb4b11d407c9c632480695599bf18fd
|
data/doc/text/news.md
CHANGED
data/lib/grntest/test-runner.rb
CHANGED
@@ -900,10 +900,34 @@ http {
|
|
900
900
|
when /\A(line \d+:\d+: syntax error), unexpected .*\z/
|
901
901
|
$1
|
902
902
|
else
|
903
|
-
content
|
903
|
+
lines = content.each_line(chomp: true).collect do |line|
|
904
|
+
normalize_error_message_line(line)
|
905
|
+
end
|
906
|
+
lines.join("\n")
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
def normalize_error_message_line(line)
|
911
|
+
case line
|
912
|
+
when /\A(#\|.\| \[index-column\]\[diff\]\[progress\].+%) (.*)\z/
|
913
|
+
pre = $1
|
914
|
+
statistics = $2
|
915
|
+
"#{pre} #{normalize_index_column_diff_progress_statistics(statistics)}"
|
916
|
+
else
|
917
|
+
line
|
904
918
|
end
|
905
919
|
end
|
906
920
|
|
921
|
+
def normalize_index_column_diff_progress_statistics(statistics)
|
922
|
+
statistics.
|
923
|
+
# 0.04s -> 0.00s
|
924
|
+
gsub(/\d+\.\d+([smhd])/, "0.00\\1").
|
925
|
+
# 227137.81records/s-> 0.00records/s
|
926
|
+
gsub(/\d+\.\d+records\/s/, "0.00records/s").
|
927
|
+
# 96.23MiB-> 0.00MiB
|
928
|
+
gsub(/\d+\.\d+(B|KiB|MiB|GiB)/, "0.00\\1")
|
929
|
+
end
|
930
|
+
|
907
931
|
def normalize_error_function(function)
|
908
932
|
function.split("::").last
|
909
933
|
end
|
data/lib/grntest/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2025 Sutou Kouhei <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -14,5 +14,5 @@
|
|
14
14
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
15
|
|
16
16
|
module Grntest
|
17
|
-
VERSION = "1.7.
|
17
|
+
VERSION = "1.7.9"
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
- Haruka Yoshihara
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|