зеркало из https://github.com/github/ruby.git
Update to ruby/mspec@3ea3d32
This commit is contained in:
Родитель
ca97001a94
Коммит
8abfc10605
|
@ -36,8 +36,21 @@ class TimeoutAction
|
||||||
elapsed = now - @started
|
elapsed = now - @started
|
||||||
if elapsed > @timeout
|
if elapsed > @timeout
|
||||||
STDERR.puts "\n#{@current_state.description}"
|
STDERR.puts "\n#{@current_state.description}"
|
||||||
|
STDERR.puts "Example took longer than the configured timeout of #{@timeout}s"
|
||||||
STDERR.flush
|
STDERR.flush
|
||||||
abort "Example took longer than the configured timeout of #{@timeout}s"
|
|
||||||
|
if RUBY_ENGINE == 'truffleruby'
|
||||||
|
STDERR.puts 'Java stacktraces:'
|
||||||
|
Process.kill :SIGQUIT, Process.pid
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
if defined?(Truffle::Debug.show_backtraces)
|
||||||
|
STDERR.puts "\nRuby backtraces:"
|
||||||
|
Truffle::Debug.show_backtraces
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
exit 2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@ IMPLS = {
|
||||||
|
|
||||||
MSPEC = ARGV.delete('--mspec')
|
MSPEC = ARGV.delete('--mspec')
|
||||||
|
|
||||||
CHECK_LAST_MERGE = ENV['CHECK_LAST_MERGE'] != 'false'
|
CHECK_LAST_MERGE = !MSPEC && ENV['CHECK_LAST_MERGE'] != 'false'
|
||||||
TEST_MASTER = ENV['TEST_MASTER'] != 'false'
|
TEST_MASTER = ENV['TEST_MASTER'] != 'false'
|
||||||
|
|
||||||
MSPEC_REPO = File.expand_path("../../..", __FILE__)
|
MSPEC_REPO = File.expand_path("../../..", __FILE__)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче