Skip to content

Commit ed2f726

Browse files
committed
Chdir removed from configs
1 parent 80c0343 commit ed2f726

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ doc/
77
build/
88
installation/virtual_*
99
.idea/
10+
*.pyc
1011

job_config_convert/print_yml.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,18 @@ def print_execution_sandbox(test, ext, output=sys.stdout):
9999

100100
def print_judge_sandbox(output=sys.stdout):
101101
# Set reasonable defaults for judges
102-
print_general_sandbox(output, '2.0', '16384')
102+
print_general_sandbox(output, '2.0', '16384', None, None, True)
103103

104104

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):
106106
output.write(' sandbox:\n')
107107
output.write(' name: "isolate"\n')
108108
if redir_stdin:
109109
output.write(' stdin: ${{EVAL_DIR}}/{}\n'.format(redir_stdin))
110110
if redir_stdout:
111111
output.write(' stdout: ${{EVAL_DIR}}/{}\n'.format(redir_stdout))
112+
if resultOutput:
113+
output.write(' output: true\n')
112114
print_sandbox_limits(output, time, memory)
113115

114116

@@ -120,13 +122,8 @@ def print_sandbox_limits(output=sys.stdout, time=None, memory=None):
120122
output.write(' time: {}\n'.format(time))
121123
if memory:
122124
output.write(' memory: {}\n'.format(memory))
123-
output.write(' chdir: ${EVAL_DIR}\n')
124125
output.write(' environ-variable:\n')
125126
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')
130127

131128

132129
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):
220217
args.append("${{SOURCE_DIR}}/{}_filtered".format(test.out_file))
221218
remove_junk = "remove_junk_{}".format(test.number)
222219
print_task(remove_junk, "", test.number, priority, False, [judge_results], "rm", args, output)
220+

submission/backend_test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function stop_file_server {
198198
if $START_FS; then
199199
kill -s SIGINT ${FILE_SERVER_PID}
200200
wait ${FILE_SERVER_PID} 2> /dev/null
201-
rm ${TEMP_OUT}
201+
#rm ${TEMP_OUT}
202202
echo "File server stopped"
203203
fi
204204
}
@@ -273,5 +273,5 @@ stop_worker
273273
stop_broker
274274
stop_file_server
275275

276-
rm -rf ${TEMP_DIR}
276+
#rm -rf ${TEMP_DIR}
277277

0 commit comments

Comments
 (0)