aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-01-18 23:48:33 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2021-01-18 23:55:51 -0800
commit4da4ad69bb7aa3dd011786834c6584bf88e0282a (patch)
tree754b273cc682d322f16002478587cbb4666c6504
parentb2159f7c38262f5d0746a3cfb9b33ea9d62ed813 (diff)
downloadruby-4da4ad69bb7aa3dd011786834c6584bf88e0282a.tar.gz
[ruby/irb] Support GitHub Actions
https://github.com/ruby/irb/commit/8e9e6c4037
-rw-r--r--test/irb/test_context.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index f3d0626caa..2dba42d321 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -447,7 +447,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0'
+ if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
expected = [
:*, /Traceback \(most recent call last\):\n/,
:*, /\t 2: from \(irb\):1:in `<main>'\n/,
@@ -477,7 +477,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0'
+ if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
expected = [
:*, /Traceback \(most recent call last\):\n/,
:*, /\t 2: from \(irb\):1:in `<main>'\n/,
@@ -513,7 +513,7 @@ module TestIRB
irb.eval_input
end
assert_empty err
- if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0'
+ if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
expected = [
:*, /Traceback \(most recent call last\):\n/,
:*, /\t... 5 levels...\n/,