Skip to content

Commit c813c82

Browse files
committed
Test .sh
1 parent 1671760 commit c813c82

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

manager/manager/docker_thread/docker_thread.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import subprocess
44
import os
55
import signal
6-
import sys
76

87

98

@@ -16,8 +15,8 @@ def __init__(self, cmd, shell=True):
1615
self.shell=shell
1716

1817
def run(self):
19-
self.process = subprocess.Popen(self.cmd, shell=self.shell, stdout=sys.stdout, stderr=subprocess.PIPE, start_new_session=True,
20-
bufsize=1024, universal_newlines=True, executable="/bin/bash")
18+
self.process = subprocess.Popen(self.cmd, shell=self.shell, stdout=subprocess.PIPE, stderr=subprocess.PIPE, start_new_session=True,
19+
bufsize=1024, universal_newlines=True)
2120
self.process.communicate()
2221

2322
def terminate(self):

manager/manager/launcher/launcher_ros2_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def run(self, callback):
2929

3030
if ACCELERATION_ENABLED:
3131
exercise_launch_cmd = (
32-
f"source /workspace/worlds/install/setup.bash;export VGL_DISPLAY={DRI_PATH}; vglrun ros2 launch {self.launch_file}"
32+
f"source /workspace/worlds/install/setup.sh;export VGL_DISPLAY={DRI_PATH}; vglrun ros2 launch {self.launch_file}"
3333
)
3434
else:
35-
exercise_launch_cmd = f"source /workspace/worlds/install/setup.bash;ros2 launch {self.launch_file}"
35+
exercise_launch_cmd = f"source /workspace/worlds/install/setup.sh;ros2 launch {self.launch_file}"
3636

3737
exercise_launch_thread = DockerThread(exercise_launch_cmd)
3838
exercise_launch_thread.start()

0 commit comments

Comments
 (0)