summaryrefslogtreecommitdiff
path: root/test/testunit/test_parallel.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-23 14:17:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-23 14:17:16 +0000
commitf7add52f8f5bca11c1d0e2c95dd7c65333036d0f (patch)
tree25371f572c0bcc057beba6c03b0bcc73044d6e88 /test/testunit/test_parallel.rb
parent3675920c1e4e4d8464a6f18b6999b583fc1d3acf (diff)
test/unit.rb: fixed wrong method name
* test/lib/test/unit.rb (Test::Unit::Parallel#deal): fixed wrong method name at r36388. * test/testunit/test_parallel.rb (TestParallel::TestParallel#test_separate): refine the pattern to process IDs but not backtrace lines, and add a better message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit/test_parallel.rb')
-rw-r--r--test/testunit/test_parallel.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index 89b5bfa..b11330b 100644
--- a/test/testunit/test_parallel.rb
+++ b/test/testunit/test_parallel.rb
@@ -195,7 +195,8 @@ module TestParallel
# this test depends to --jobs-status
spawn_runner "--jobs-status", "--separate"
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
- assert(buf.scan(/(\d+?)[:=]/).flatten.uniq.size > 1)
+ assert(buf.scan(/^\[\s*\d+\/\d+\]\s*(\d+?)=/).flatten.uniq.size > 1,
+ message("retried tests should run in different processes") {buf})
end
end
end