@@ -99,16 +99,18 @@ def print_execution_sandbox(test, ext, output=sys.stdout):
99
99
100
100
def print_judge_sandbox (output = sys .stdout ):
101
101
# Set reasonable defaults for judges
102
- print_general_sandbox (output , '2.0' , '16384' )
102
+ print_general_sandbox (output , '2.0' , '16384' , None , None , True )
103
103
104
104
105
- def print_general_sandbox (output = sys .stdout , time = None , memory = None , redir_stdin = None , redir_stdout = None ):
105
+ def print_general_sandbox (output = sys .stdout , time = None , memory = None , redir_stdin = None , redir_stdout = None , resultOutput = None ):
106
106
output .write (' sandbox:\n ' )
107
107
output .write (' name: "isolate"\n ' )
108
108
if redir_stdin :
109
109
output .write (' stdin: ${{EVAL_DIR}}/{}\n ' .format (redir_stdin ))
110
110
if redir_stdout :
111
111
output .write (' stdout: ${{EVAL_DIR}}/{}\n ' .format (redir_stdout ))
112
+ if resultOutput :
113
+ output .write (' output: true\n ' )
112
114
print_sandbox_limits (output , time , memory )
113
115
114
116
@@ -120,13 +122,8 @@ def print_sandbox_limits(output=sys.stdout, time=None, memory=None):
120
122
output .write (' time: {}\n ' .format (time ))
121
123
if memory :
122
124
output .write (' memory: {}\n ' .format (memory ))
123
- output .write (' chdir: ${EVAL_DIR}\n ' )
124
125
output .write (' environ-variable:\n ' )
125
126
output .write (' PATH: "/usr/bin"\n ' )
126
- output .write (' bound-directories:\n ' )
127
- output .write (' - src: ${SOURCE_DIR}\n ' )
128
- output .write (' dst: ${EVAL_DIR}\n ' )
129
- output .write (' mode: RW\n ' )
130
127
131
128
132
129
def print_one_test (test , ext , data_folder , output = sys .stdout ):
@@ -220,3 +217,4 @@ def print_one_test(test, ext, data_folder, output=sys.stdout):
220
217
args .append ("${{SOURCE_DIR}}/{}_filtered" .format (test .out_file ))
221
218
remove_junk = "remove_junk_{}" .format (test .number )
222
219
print_task (remove_junk , "" , test .number , priority , False , [judge_results ], "rm" , args , output )
220
+
0 commit comments