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
@@ -155,13 +155,16 | |||
|
155 | 155 | cmp_file.close |
|
156 | 156 | |
|
157 | 157 | result_file_name = "#{test_result_dir}/1/result" |
|
158 | 158 | |
|
159 | 159 | if File.exists?(result_file_name) |
|
160 | 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 | 165 | stat = extract_running_stat(results) |
|
163 | 166 | |
|
164 | 167 | return { |
|
165 | 168 | :output_file_name => output_file_name, |
|
166 | 169 | :running_stat => stat, |
|
167 | 170 | :comment => "", |
You need to be logged in to leave comments.
Login now