# HG changeset patch # User Nattee Niparnan # Date 2014-08-10 16:49:23 # Node ID 84ba9b0dee2594029de2d252d49264eb4aec095f # Parent 9e3cee7d454d5746f585c400d49e5fc4fb75f931 # Parent 8026f5b1cfcacaa7c83785576d3d3e42c05141a2 merge bugfix from the main branch diff --git a/lib/engine.rb b/lib/engine.rb --- a/lib/engine.rb +++ b/lib/engine.rb @@ -73,6 +73,8 @@ # puts "PROBLEM DIR: #{problem_home}" if !FileTest.exist?(problem_home) + puts "PROBLEM DIR: #{problem_home}" + puts "No test data. (check problem dir)" raise "No test data." end diff --git a/std-script/compile b/std-script/compile --- a/std-script/compile +++ b/std-script/compile @@ -11,14 +11,14 @@ # ############################## -def talk(msg) +def talk(str='') if ENV['TALKATIVE']!=nil puts str end if ENV['GRADER_LOGGING']!=nil log_fname = ENV['GRADER_LOGGING'] fp = File.open(log_fname,"a") - fp.puts("run: #{Time.new.strftime("%H:%M")} #{msg}") + fp.puts("run: #{Time.new.strftime("%H:%M")} #{str}") fp.close end end