aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-06-08 12:13:57 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-06-10 06:39:05 +0000
commitd0f2a7d85eefcef6281b5898154a9e2e8418bf22 (patch)
tree7bcb0d96623dcca36ed22f21bc5eff955f2b0fe4 /test/mocks
parent7ba99b5dfbad80619ca9298132956ee58cb4156c (diff)
Drop shell debug mode in command wrapper method
Change-Id: I70133119ca8344ad675400e1ea9ba1b8a6f9b38b Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks')
-rwxr-xr-xtest/mocks/mass-pnf-sim/MassPnfSim.py4
1 files changed, 2 insertions, 2 deletions
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: