diff --git a/judge/scripts/lib/engine.rb b/judge/scripts/lib/engine.rb --- a/judge/scripts/lib/engine.rb +++ b/judge/scripts/lib/engine.rb @@ -71,7 +71,7 @@ copy_log = copy_script(problem_home) save_copy_log(problem_home,copy_log) end - + call_judge(problem_home,language,grading_dir,source_name) @reporter.report(submission,"#{grading_dir}/test-result") @@ -102,7 +102,7 @@ def call_judge(problem_home,language,grading_dir,fname) ENV['PROBLEM_HOME'] = problem_home - talk "Grading in #{grading_dir}" + talk grading_dir Dir.chdir grading_dir cmd = "#{problem_home}/script/judge #{language} #{fname}" talk "CMD: #{cmd}"