diff --git a/all_tests.cfg.erb b/all_tests.cfg.erb --- a/all_tests.cfg.erb +++ b/all_tests.cfg.erb @@ -5,8 +5,8 @@ mem_limit_each <%= options[:mem_limit] %> score_each 10 -<% 1.upto(num_testcase) do |i| %> - run <%= i %> +<% 1.upto(num_testcases) do |i| %> + run <%= i %> do tests <%= i %> end <% end %> diff --git a/import_problem b/import_problem --- a/import_problem +++ b/import_problem @@ -70,7 +70,7 @@ # generating all_tests.cfg puts "generating testcase config file" -template = File.open("all_tests.cfg.erb").readlines +template = File.open(File.dirname(__FILE__) + "/all_tests.cfg.erb").read all_test_cfg = ERB.new(template) cfg_file = File.open("#{problem}/test_cases/all_tests.cfg","w")