Skip to content

Commit

Permalink
upt
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Feb 18, 2025
1 parent 3dd7e3b commit 069e56d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/tests/cucumber/features/steps/common_steps/modeler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
import os



def run_modeler(context):
command = build_antares_modeler_command(context)
print(f"Running command: {command}")
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
print("*********************** Begin stdout ***********************")
print(out.replace(b'\r\n', b'\n').decode('utf-8'))
print("*********************** End stdout ***********************")

print("*********************** Begin stderr ***********************")
print(err.replace(b'\r\n', b'\n').decode('utf-8'))
print("*********************** End stderr ***********************")

context.return_code = process.returncode


Expand Down

0 comments on commit 069e56d

Please sign in to comment.