From: Bartek Grzybowski Date: Mon, 8 Jun 2020 10:13:57 +0000 (+0200) Subject: Drop shell debug mode in command wrapper method X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d0f2a7d85eefcef6281b5898154a9e2e8418bf22;p=integration.git Drop shell debug mode in command wrapper method Change-Id: I70133119ca8344ad675400e1ea9ba1b8a6f9b38b Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski --- diff --git a/test/mocks/mass-pnf-sim/MassPnfSim.py b/test/mocks/mass-pnf-sim/MassPnfSim.py index e4b19fd9e..a96520546 100755 --- a/test/mocks/mass-pnf-sim/MassPnfSim.py +++ b/test/mocks/mass-pnf-sim/MassPnfSim.py @@ -145,11 +145,11 @@ class MassPnfSim: exit(1) def _run_cmd(self, cmd, dir_context='.'): - if self.args.verbose == 'debug': - cmd='bash -x ' + cmd old_pwd = getcwd() try: chdir(dir_context) + self.logger.debug(f'_run_cmd: Current direcotry: {getcwd()}') + self.logger.debug(f'_run_cmd: Command string: {cmd}') run(cmd, check=True, shell=True) chdir(old_pwd) except FileNotFoundError: