@@ -185,7 +185,7 @@ def format_exec_code_map(returncode):
185
185
if self .language == "viva" :
186
186
# Called as `viva validator.viva testcase.in`.
187
187
result = self ._exec_command (
188
- self .run_command + [main_path .resolve ()],
188
+ self .run_command + [main_path .absolute ()],
189
189
exec_code_map = format_exec_code_map ,
190
190
cwd = cwd ,
191
191
)
@@ -319,7 +319,7 @@ def run(
319
319
if self .language in Validator .FORMAT_VALIDATOR_LANGUAGES :
320
320
return Validator ._run_format_validator (self , testcase , cwd )
321
321
322
- invocation = self .run_command + [testcase .in_path .resolve ()]
322
+ invocation = self .run_command + [testcase .in_path .absolute ()]
323
323
324
324
with testcase .ans_path .open ("rb" ) as ans_file :
325
325
ret = self ._exec_helper (
@@ -377,8 +377,8 @@ def run(
377
377
if mode == Mode .INPUT :
378
378
raise ValueError ("OutputValidator does not support Mode.INPUT" )
379
379
380
- in_path = testcase .in_path .resolve ()
381
- ans_path = testcase .ans_path .resolve ()
380
+ in_path = testcase .in_path .absolute ()
381
+ ans_path = testcase .ans_path .absolute ()
382
382
if mode == Mode .ANSWER :
383
383
path = ans_path
384
384
elif mode == Mode .INVALID :
@@ -387,10 +387,10 @@ def run(
387
387
"OutputValidator in Mode.INVALID should only be run for data/invalid_output"
388
388
)
389
389
assert testcase .out_path is not None
390
- path = testcase .out_path .resolve ()
390
+ path = testcase .out_path .absolute ()
391
391
elif mode == Mode .VALID_OUTPUT :
392
392
assert testcase .out_path is not None
393
- path = testcase .out_path .resolve ()
393
+ path = testcase .out_path .absolute ()
394
394
else :
395
395
assert mode != Mode .INPUT
396
396
# mode is actually a Run
0 commit comments