Skip to content

Commit

Permalink
Capture and print
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Apr 30, 2024
1 parent 1ffefd5 commit 5128e10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/run_sample_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def launch_sample():
elif (config_json['language'] == "CPP"):
try:
sample_return = subprocess.run(
args=config_json_arguments_list, executable=config_json['sample_file'], timeout=600)
args=config_json_arguments_list, executable=config_json['sample_file'], timeout=600, capture_output=True, text=True)
print(sample_return.stdout)
exit_code = sample_return.returncode
except subprocess.TimeoutExpired as timeOut:
sys.exit(-1)
Expand Down

0 comments on commit 5128e10

Please sign in to comment.