Description:
[grader] engine_spec: fix reg-ex new line problem, change test case for 1.5 sec submission (as the machine is a little faster)
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@150 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r39:7a9b64601b9d - - 3 files changed: 3 inserted, 3 deleted
@@ -11,7 +11,7 | |||||
|
11 | printf("%d\n",a+b); |
|
11 | printf("%d\n",a+b); |
|
12 |
|
12 | ||
|
13 | for(a=0; a<2; a++) { |
|
13 | for(a=0; a<2; a++) { |
|
14 |
- while(c<1 |
|
14 | + while(c<1550000000) { |
|
15 | c++; |
|
15 | c++; |
|
16 | b+=c; |
|
16 | b+=c; |
|
17 | } |
|
17 | } |
@@ -232,7 +232,7 | |||||
|
232 | :graded_at= => nil, |
|
232 | :graded_at= => nil, |
|
233 | :compiler_message= => '', |
|
233 | :compiler_message= => '', |
|
234 | :grader_comment= => '', |
|
234 | :grader_comment= => '', |
|
235 |
- :running_stat= => /[Ee]xit.*status.*10.*0.0 sec |
|
235 | + :running_stat= => /[Ee]xit.*status.*10.*0\.0 sec/m, |
|
236 | :output_file_name= => lambda { |fname| |
|
236 | :output_file_name= => lambda { |fname| |
|
237 | File.exists?(fname).should be_true |
|
237 | File.exists?(fname).should be_true |
|
238 | }, |
|
238 | }, |
@@ -9,7 +9,7 | |||||
|
9 | def init_sandbox |
|
9 | def init_sandbox |
|
10 | config = Grader::Configuration.get_instance |
|
10 | config = Grader::Configuration.get_instance |
|
11 | clear_sandbox |
|
11 | clear_sandbox |
|
12 |
- |
|
12 | + FileUtils.mkdir_p config.user_result_dir |
|
13 | cp_cmd = "cp -R #{config.test_data_dir}/ev #{config.test_sandbox_dir}" |
|
13 | cp_cmd = "cp -R #{config.test_data_dir}/ev #{config.test_sandbox_dir}" |
|
14 | system(cp_cmd) |
|
14 | system(cp_cmd) |
|
15 | end |
|
15 | end |
You need to be logged in to leave comments.
Login now