We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f9d87 commit 1359595Copy full SHA for 1359595
microservices/dlstreamer-pipeline-server/tests/scripts/common_library/dlsps_utils.py
@@ -355,3 +355,8 @@ def set_env(self, configdict):
355
os.chdir('{}'.format(self.dlsps_path))
356
for key, value in configdict.items():
357
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