Description:
Merge branch 'master' of gitorious.org:cafe-grader/cafe-grader-judge-scripts into win-local
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r113:c3fb576034e2 - - 1 file changed: 4 inserted, 1 deleted
@@ -158,7 +158,10 | |||||
|
158 |
|
158 | ||
|
159 | if File.exists?(result_file_name) |
|
159 | if File.exists?(result_file_name) |
|
160 | output_file_name = "#{test_result_dir}/1/output.txt" |
|
160 | output_file_name = "#{test_result_dir}/1/output.txt" |
|
161 | - results = File.open("#{test_result_dir}/1/result").readlines |
|
161 | + results = [] |
|
|
162 | + File.open("#{test_result_dir}/1/result") do |f| | ||
|
|
163 | + results = f.readlines | ||
|
|
164 | + end | ||
|
162 | stat = extract_running_stat(results) |
|
165 | stat = extract_running_stat(results) |
|
163 |
|
166 | ||
|
164 | return { |
|
167 | return { |
You need to be logged in to leave comments.
Login now