grntest 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/grntest/executors/base-executor.rb +22 -2
- data/lib/grntest/version.rb +1 -1
- 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: 8e90468027680b461a1633c49db9f3feb7babd1a0c2e81a4aad381ade35b4fb3
|
4
|
+
data.tar.gz: 31b1cc050ea4b70ed08082a0b5443586676aa5d77c0512287736ee1837b4c371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8067b106d13ebd121cd96d43eb82b807adb81fe89ea26df1ea4eeb8dfdd6be096e14fdbeeb6ca00528d5704d0d53d6123e28d45973fb5bb283990c59101e090
|
7
|
+
data.tar.gz: b8eb794be911a7dc8b7eb74172b4cb109cafe74a945cfc3ca3e626d90a54a36ca61058c91883238b579d4c0a92578a58d46b2aff4a7dbb1c4086059a0109245e
|
data/doc/text/news.md
CHANGED
@@ -535,12 +535,32 @@ module Grntest
|
|
535
535
|
end
|
536
536
|
next if thread_log_message?(entry.message)
|
537
537
|
next if ignore_log_message?(entry.message)
|
538
|
-
|
539
|
-
|
538
|
+
log_level, message = normalize_log(entry)
|
539
|
+
formatted_log_level = format_log_level(log_level)
|
540
|
+
important_messages << "\#|#{formatted_log_level}| #{message}"
|
540
541
|
end
|
541
542
|
important_messages.join("\n")
|
542
543
|
end
|
543
544
|
|
545
|
+
def normalize_log(entry)
|
546
|
+
case entry.message
|
547
|
+
when /\A(\[io\]\[(?:open|close)\]) <(.*?)>\z/
|
548
|
+
tag = $1
|
549
|
+
path = $2
|
550
|
+
normalized_path = File.basename(path)
|
551
|
+
normalized_message = "#{tag} <#{normalized_path}>"
|
552
|
+
case entry.log_level
|
553
|
+
when :info, :debug
|
554
|
+
normalized_log_level = :debug
|
555
|
+
else
|
556
|
+
normalized_log_level = entry.log_level
|
557
|
+
end
|
558
|
+
[normalized_log_level, normalized_message]
|
559
|
+
else
|
560
|
+
[entry.log_level, entry.message]
|
561
|
+
end
|
562
|
+
end
|
563
|
+
|
544
564
|
def read_all_readable_content(output, options={})
|
545
565
|
content = ""
|
546
566
|
first_timeout = options[:first_timeout] || @context.read_timeout
|
data/lib/grntest/version.rb
CHANGED
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.4.
|
4
|
+
version: 1.4.1
|
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: 2020-05-
|
12
|
+
date: 2020-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diff-lcs
|