Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Nov 13, 2024
1 parent f0dc2db commit 9549897
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/cpp/benders/factories/BendersFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void BendersMainFactory::AddCriterionOutput(
&OuterLoopCurrentIterationData::outer_loop_criterion);

positive_unsupplied_file_ = std::visit(
[](auto&& the_variant) { return the_variant.PatternsPrefix(); },
[](auto&& the_variant) { return the_variant.PatternsPrefix() + ".txt"; },
criterion_input_holder_);
math_log_driver->add_logger(
output_root / positive_unsupplied_file_, headers,
Expand Down
16 changes: 8 additions & 8 deletions tests/end_to_end/cucumber/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ def run_command(study_path, memory, method, n_mpi, allow_run_as_root=False):
print(f"Running command: {command}")
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
out, err = process.communicate()
# if process.returncode != 0:
print("*********************** Begin stdout ***********************")
print(out)
print("*********************** End stdout ***********************")

print("*********************** Begin stderr ***********************")
print(err)
print("*********************** End stderr ***********************")
if process.returncode != 0:
print("*********************** Begin stdout ***********************")
print(out)
print("*********************** End stdout ***********************")

print("*********************** Begin stderr ***********************")
print(err)
print("*********************** End stderr ***********************")

return process.returncode

Expand Down
1 change: 0 additions & 1 deletion tests/end_to_end/utils_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def get_out_data(output_dir, files_to_read: FilesToRead) -> Outputs:
for path in Path(output_dir).iterdir():
if path.suffix == ".zip":
with zipfile.ZipFile(path, "r") as archive:
print(f"---------------\n {archive.namelist()}\n---------------")
out = Outputs()
out.out_json = json.loads(archive.read(files_to_read.out_json.as_posix()))
out.options_json = json.loads(archive.read(files_to_read.options_json.as_posix()))
Expand Down

0 comments on commit 9549897

Please sign in to comment.