Skip to content

Commit 1359595

Browse files
authored
move _execute_cmd
1 parent 57f9d87 commit 1359595

File tree

1 file changed

+5
-0
lines changed
  • microservices/dlstreamer-pipeline-server/tests/scripts/common_library

1 file changed

+5
-0
lines changed

microservices/dlstreamer-pipeline-server/tests/scripts/common_library/dlsps_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,8 @@ def set_env(self, configdict):
355355
os.chdir('{}'.format(self.dlsps_path))
356356
for key, value in configdict.items():
357357
self._execute_cmd("sed -i 's#{Key}=.*#{Key}={Value}#g' .env".format(Key=key, Value=value))
358+
359+
def _execute_cmd(self, cmd):
360+
logging.debug('Executing command: ' + cmd)
361+
cmd_output = subprocess.check_output(cmd, shell=True, executable='/bin/bash')
362+
return cmd_output

0 commit comments

Comments
 (0)