grntest 1.6.2 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 738937a2c9b0aaaaca52666b1e473316e8061d723089088a354ba5866b74f09f
4
- data.tar.gz: 130ba969e61ea492878c06fbce47b8d1dbf9eaefcbc1af8d8c34bec99c26b46f
3
+ metadata.gz: 5ce455333ded86e81b262c5bb46ffd1d712b08a6d15135aa18f39a52e2258f6e
4
+ data.tar.gz: 26324018775c7543a54d3caeac5ff782799182c76fb591e9cf50ad0532e33340
5
5
  SHA512:
6
- metadata.gz: 65b744a5acd3abcce3904eb9ce012815659f02938987af6e90d449df161725630864c299f47e7ccc0fc8779bd095293459c7a446a55aa50775b96ade2337de01
7
- data.tar.gz: 9af7a26b36f338e4da106dedc330d14a80e30043bd5ef0a8b2c247f8403957d30ad2dde25113a4a61488d2d4ce26f654b4e17de4323373006091d4640a65828c
6
+ metadata.gz: 3869551fa9869d793f80dca800ca9fb6396a2c26abd0cd414eec6dbd79456dbbffc305732fc53cb55b1ae7f424bf9602d5ffec6d2a28a827d9be14bfd6ee8c59
7
+ data.tar.gz: 6ec7b1118ffd8e70f3d044b10a5f3704b2c5811cda23da8eab23c8df37356b35fb1a4e6b994958705035dcb01afbbff46f5ba83840fd64172bdbea807b42b6e9
data/doc/text/news.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # News
2
2
 
3
+ ## 1.6.4: 2023-10-21
4
+
5
+ ### Improvements
6
+
7
+ * arrow: Added support for metadata normalization.
8
+
9
+ ## 1.6.3: 2023-09-18
10
+
11
+ ### Improvements
12
+
13
+ * reporter: stream: Changed to show worker ID for each test.
14
+
15
+ * Added support for backtrace pattern provided by mruby 3.2.0.
16
+
17
+ ### Fixes
18
+
19
+ * reporter: stream: Fixed a bug that worker ID isn't outputted.
20
+
3
21
  ## 1.6.2: 2023-08-24
4
22
 
5
23
  ### Improvements
@@ -763,6 +763,8 @@ module Grntest
763
763
  true
764
764
  when /\A[a-zA-Z]:[\/\\]/
765
765
  true
766
+ when "(unknown):0"
767
+ true
766
768
  when /\A\(unknown\):\d+:\d+: /
767
769
  true
768
770
  when /\A[\w.\\-]+:\d+:\d+: /
@@ -128,13 +128,19 @@ module Grntest
128
128
  reporter.report
129
129
  end
130
130
 
131
+ def report_worker_id(worker)
132
+ @worker_id_width ||= (Math.log10(@tester.n_workers) + 1).floor
133
+ print("[%*d] " % [@worker_id_width, worker.id])
134
+ end
135
+
131
136
  def report_full_test_name(worker)
137
+ report_worker_id(worker) unless single_worker?
132
138
  print("#{worker.suite_name}/#{worker.test_name}")
133
139
  end
134
140
 
135
141
  def report_test(worker, result)
136
142
  report_marker(result)
137
- print("[#{worker.id}] ") if single_worker?
143
+ report_worker_id(worker) unless single_worker?
138
144
  puts(worker.suite_name)
139
145
  print(" #{worker.test_name}")
140
146
  report_test_result(result, worker.status)
@@ -711,6 +711,14 @@ http {
711
711
  case name
712
712
  when "start_time", "elapsed_time"
713
713
  value = 0
714
+ when "error_message"
715
+ value = normalize_error_message(value) if value
716
+ when "error_file"
717
+ value = normalize_error_file_path(value) if value
718
+ when "error_line"
719
+ value = 0 if value
720
+ when "error_function"
721
+ value = normalize_error_function(value) if value
714
722
  end
715
723
  normalized_record << value
716
724
  end
@@ -727,10 +735,9 @@ http {
727
735
  end
728
736
 
729
737
  def apache_arrow_metadata?(schema)
730
- # TODO: Use schema.metadata with gobject-introspection 3.4.2 and
731
- # Red Arrow 0.17.0.
732
- schema.fields.collect(&:name) ==
733
- ["return_code", "start_time", "elapsed_time"]
738
+ metadata = schema.metadata
739
+ return false if metadata.nil?
740
+ metadata["GROONGA:data_type"] == "metadata"
734
741
  end
735
742
 
736
743
  def normalize_output_xml(content, options)
@@ -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.6.2"
17
+ VERSION = "1.6.4"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-24 00:00:00.000000000 Z
12
+ date: 2023-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diff-lcs