Skip to content

Commit e6be5e7

Browse files
committed
Test console output
1 parent eb30331 commit e6be5e7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

manager/manager/manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ def on_run_application(self, event):
689689
"source /workspace/code/install/setup.bash && ros2 run academy academyCode"
690690
],
691691
stdin=open("/dev/pts/" + console_fd, "r"),
692-
stdout=sys.stdout,
693-
stderr=subprocess.STDOUT,
692+
stdout=open("/dev/pts/" + console_fd, "w"),
693+
stderr=open("/dev/pts/" + console_fd, "w"),
694694
bufsize=1024,
695695
universal_newlines=True,
696696
shell=True,
@@ -717,8 +717,8 @@ def on_run_application(self, event):
717717
self.application_process = subprocess.Popen(
718718
["python3", entrypoint],
719719
stdin=open("/dev/pts/" + console_fd, "r"),
720-
stdout=sys.stdout,
721-
stderr=subprocess.STDOUT,
720+
stdout=open("/dev/pts/" + console_fd, "w"),
721+
stderr=open("/dev/pts/" + console_fd, "w"),
722722
bufsize=1024,
723723
universal_newlines=True,
724724
)

0 commit comments

Comments
 (0)