File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,16 +24,13 @@ namespace :test do
2424 desc "run mruby & unit tests"
2525 # only build mtest for host
2626 task :mtest => [ :compile ] + MRuby . targets . values . map { |t | t . build_mrbtest_lib_only? ? nil : t . exefile ( "#{ t . build_dir } /test/mrbtest" ) } . compact do
27- # mruby-io tests expect to be in MRUBY_ROOT
28- Dir . chdir ( MRUBY_ROOT ) do
29- # in order to get mruby/test/t/synatx.rb __FILE__ to pass,
30- # we need to make sure the tests are built relative from MRUBY_ROOT
31- load "#{ MRUBY_ROOT } /test/mrbtest.rake"
32- MRuby . each_target do |target |
33- # only run unit tests here
34- target . enable_bintest = false
35- run_test unless build_mrbtest_lib_only?
36- end
27+ # in order to get mruby/test/t/synatx.rb __FILE__ to pass,
28+ # we need to make sure the tests are built relative from MRUBY_ROOT
29+ load "#{ MRUBY_ROOT } /test/mrbtest.rake"
30+ MRuby . each_target do |target |
31+ # only run unit tests here
32+ target . enable_bintest = false
33+ run_test unless build_mrbtest_lib_only?
3734 end
3835 end
3936
You can’t perform that action at this time.
0 commit comments