mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bootstraptest/runner.rb: keyword argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1530dce8ac
commit
477d115924
1 changed files with 1 additions and 4 deletions
|
@ -318,13 +318,10 @@ def assert_valid_syntax(testsrc, message = '')
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_normal_exit(testsrc, *rest)
|
def assert_normal_exit(testsrc, *rest, timeout: nil, **opt)
|
||||||
newtest
|
newtest
|
||||||
opt = {}
|
|
||||||
opt = rest.pop if Hash === rest.last
|
|
||||||
message, ignore_signals = rest
|
message, ignore_signals = rest
|
||||||
message ||= ''
|
message ||= ''
|
||||||
timeout = opt[:timeout]
|
|
||||||
show_progress(message) {
|
show_progress(message) {
|
||||||
faildesc = nil
|
faildesc = nil
|
||||||
filename = make_srcfile(testsrc)
|
filename = make_srcfile(testsrc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue