Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed May 29, 2024
1 parent e8f2dd6 commit fbb264e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/commands/run/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ def test_execution(create_package, time_tool):

create_ins_outs(package_path)
test = package_util.get_tests("abc", None)[0]
output_test = command.get_output_file(test)

with open(os.path.join(package_path, "config.yml"), "r") as config_file:
config = yaml.load(config_file, Loader=yaml.FullLoader)

os.makedirs(paths.get_executions_path(solution), exist_ok=True)
result = command.run_solution((solution, paths.get_executables_path(executable), test, config['time_limit'],
result = command.run_solution((solution, paths.get_executables_path(executable), test, output_test, config['time_limit'],
config['memory_limit'], oiejq.get_oiejq_path(), paths.get_executions_path()))
assert result.Status == Status.OK

Expand Down

0 comments on commit fbb264e

Please sign in to comment.