Skip to content

Commit 3b230f3

Browse files
committed
already in mruby dir
1 parent bd39656 commit 3b230f3

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

Rakefile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)