summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-12 16:29:02 +0900
committerGitHub <[email protected]>2021-01-12 16:29:02 +0900
commite13f34e30866add2ec1829ec1819366844701c34 (patch)
treeb6ea0d581d43a2ad13d7642a5c24f7db30f3613b
parentb64ec814d6d5d663e7a88a36161f92431616fe62 (diff)
parent02121cbd65b5e1445f2e6ed08eb758621fd38b8b (diff)
downloadmruby-e13f34e30866add2ec1829ec1819366844701c34.tar.gz
mruby-e13f34e30866add2ec1829ec1819366844701c34.zip
Merge pull request #5288 from shuujii/fix-that-sometimes-parallel-build-of-test-code-fails
Fix that sometimes parallel build of test code fails; fix #5284
-rw-r--r--tasks/test.rake13
1 files changed, 8 insertions, 5 deletions
diff --git a/tasks/test.rake b/tasks/test.rake
index bb08a6cb8..a18635cc6 100644
--- a/tasks/test.rake
+++ b/tasks/test.rake
@@ -17,9 +17,12 @@ namespace :test do |test_ns|
desc "build all mruby tests"
task :build => "build:lib"
- namespace :build do
+ namespace :build do |test_build_ns|
desc "build library tests"
- task :lib
+ task :lib => :all do
+ MRuby.each_target{|build| build.gem(core: 'mruby-test')}
+ test_build_ns["lib_without_loading_gem"].invoke
+ end
end
desc "run all mruby tests"
@@ -36,13 +39,13 @@ end
MRuby.each_target do |build|
if build.test_enabled?
- t = task "test:build:lib:#{build.name}" => :all do
- gem = build.gem(core: 'mruby-test')
+ t = task "test:build:lib_without_loading_gem:#{build.name}" do
+ gem = build.gems["mruby-test"]
gem.setup
gem.setup_compilers
Rake::Task[build.define_installer_if_needed("mrbtest")].invoke
end
- task "test:build:lib" => t
+ task "test:build:lib_without_loading_gem" => t
t = task "test:run:lib:#{build.name}" do
build.run_test