mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/testunit/test_parallel.rb (test_separate): Test for "--separate"
option (r34121) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60da7a36f5
commit
38ade50140
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Dec 25 23:16:11 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
|
* test/testunit/test_parallel.rb (test_separate): Test for "--separate"
|
||||||
|
option (r34121)
|
||||||
|
|
||||||
Sun Dec 25 22:39:49 2011 Shota Fukumori <sorah@tubusu.net>
|
Sun Dec 25 22:39:49 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* lib/test/unit.rb (_run_parallel):
|
* lib/test/unit.rb (_run_parallel):
|
||||||
|
|
|
@ -177,5 +177,11 @@ module TestParallel
|
||||||
assert_match(/\d+=ptest_(first|second|third|forth) */,buf)
|
assert_match(/\d+=ptest_(first|second|third|forth) */,buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_separate
|
||||||
|
# this test depends to --jobs-status
|
||||||
|
spawn_runner "--jobs-status", "--separate"
|
||||||
|
buf = timeout(10){@test_out.read}
|
||||||
|
assert(buf.scan(/(\d+?)[:=]/).flatten.uniq.size > 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue