[前][次][番号順一覧][スレッド一覧]

ruby-changes:56157

From: Yusuke <ko1@a...>
Date: Wed, 19 Jun 2019 23:11:43 +0900 (JST)
Subject: [ruby-changes:56157] Yusuke Endoh: 65944e96d3 (trunk): test/racc/test_racc_command.rb: Extend the timeout

https://git.ruby-lang.org/ruby.git/commit/?id=65944e96d3

From 65944e96d39a8ae3602751f49cb337335b2c6c45 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Wed, 19 Jun 2019 23:10:40 +0900
Subject: test/racc/test_racc_command.rb: Extend the timeout

test_opal, test_ruby18, and test_ruby22 are slow tests.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20190619T105405Z.fail.html.gz

diff --git a/test/racc/helper.rb b/test/racc/helper.rb
index 035c76a..7dce020 100644
--- a/test/racc/helper.rb
+++ b/test/racc/helper.rb
@@ -42,7 +42,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L42
       end
     end
 
-    def assert_compile(asset, args = [])
+    def assert_compile(asset, args = [], **opt)
       file = File.basename(asset, '.y')
       args = ([args].flatten) + [
         "#{ASSET_DIR}/#{file}.y",
@@ -50,7 +50,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L50
         "-O#{OUT_DIR}/#{file}",
         "-o#{TAB_DIR}/#{file}",
       ]
-      racc *args
+      racc *args, **opt
     end
 
     def assert_debugfile(asset, ok)
@@ -91,12 +91,12 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L91
         "expectation. Try compiling it and diff with test/regress/#{file}.")
     end
 
-    def racc(*arg)
-      ruby "-S", RACC, *arg
+    def racc(*arg, **opt)
+      ruby "-S", RACC, *arg, **opt
     end
 
-    def ruby(*arg)
-      assert_ruby_status(["-C", TEMP_DIR, *arg])
+    def ruby(*arg, **opt)
+      assert_ruby_status(["-C", TEMP_DIR, *arg], **opt)
     end
   end
 end
diff --git a/test/racc/test_racc_command.rb b/test/racc/test_racc_command.rb
index 2291538..fcbe847 100644
--- a/test/racc/test_racc_command.rb
+++ b/test/racc/test_racc_command.rb
@@ -164,13 +164,13 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/test_racc_command.rb#L164
     # .y files from `parser` gem
 
     def test_ruby18
-      assert_compile 'ruby18.y'
+      assert_compile 'ruby18.y', [], timeout: 60
       assert_debugfile 'ruby18.y', []
       # assert_output_unchanged 'ruby18.y'
     end
 
     def test_ruby22
-      assert_compile 'ruby22.y'
+      assert_compile 'ruby22.y', [], timeout: 60
       assert_debugfile 'ruby22.y', []
       # assert_output_unchanged 'ruby22.y'
     end
@@ -186,7 +186,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/test_racc_command.rb#L186
     # .y file from opal gem
 
     def test_opal
-      assert_compile 'opal.y'
+      assert_compile 'opal.y', [], timeout: 60
       assert_debugfile 'opal.y', []
       # assert_output_unchanged 'opal.y'
     end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]