Drop shell debug mode in command wrapper method 83/108883/2
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 8 Jun 2020 10:13:57 +0000 (12:13 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 10 Jun 2020 06:39:05 +0000 (06:39 +0000)
Change-Id: I70133119ca8344ad675400e1ea9ba1b8a6f9b38b
Issue-ID: INT-1617
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
test/mocks/mass-pnf-sim/MassPnfSim.py

index e4b19fd..a965205 100755 (executable)
@@ -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: