@@ -183,7 +183,7 @@ def format_exec_code_map(returncode):
183
183
if self .language == "viva" :
184
184
# Called as `viva validator.viva testcase.in`.
185
185
result = self ._exec_command (
186
- self .run_command + [main_path .resolve ()],
186
+ self .run_command + [main_path .absolute ()],
187
187
exec_code_map = format_exec_code_map ,
188
188
cwd = cwd ,
189
189
)
@@ -312,7 +312,7 @@ def run(
312
312
if self .language in Validator .FORMAT_VALIDATOR_LANGUAGES :
313
313
return Validator ._run_format_validator (self , testcase , cwd )
314
314
315
- invocation = self .run_command + [testcase .in_path .resolve ()]
315
+ invocation = self .run_command + [testcase .in_path .absolute ()]
316
316
317
317
with testcase .ans_path .open () as ans_file :
318
318
ret = self ._exec_helper (
@@ -368,8 +368,8 @@ def run(
368
368
if mode == Mode .INPUT :
369
369
raise ValueError ("OutputValidator do not support Mode.INPUT" )
370
370
371
- in_path = testcase .in_path .resolve ()
372
- ans_path = testcase .ans_path .resolve ()
371
+ in_path = testcase .in_path .absolute ()
372
+ ans_path = testcase .ans_path .absolute ()
373
373
if mode == Mode .ANSWER :
374
374
path = ans_path
375
375
elif mode == Mode .INVALID :
@@ -378,10 +378,10 @@ def run(
378
378
"OutputValidator in Mode.INVALID should only be run for data/invalid_output"
379
379
)
380
380
assert testcase .out_path is not None
381
- path = testcase .out_path .resolve ()
381
+ path = testcase .out_path .absolute ()
382
382
elif mode == Mode .VALID_OUTPUT :
383
383
assert testcase .out_path is not None
384
- path = testcase .out_path .resolve ()
384
+ path = testcase .out_path .absolute ()
385
385
else :
386
386
assert mode != Mode .INPUT
387
387
# mode is actually a Run
0 commit comments