Skip to content

Commit

Permalink
print logs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Nov 7, 2024
1 parent 197eb8b commit 5e99a39
Showing 1 changed file with 8 additions and 8 deletions.
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, shell=True)
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

0 comments on commit 5e99a39

Please sign in to comment.