diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-07-17 03:08:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-17 03:08:47 +0000 |
commit | 93df930fbd7e8f0f4a7868be469ab7b1fa2b3c47 (patch) | |
tree | 062f7cd8e3091120aeee4070a9f4f21ddaa99c48 /yardstick | |
parent | 04776024ae7a404c2987e842fe725589a56600dd (diff) | |
parent | aa195b8e742556b422cf5583c3b531ec1b58ebdc (diff) |
Merge "test_attacker_baremetal: don't run local commands"
Diffstat (limited to 'yardstick')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/attacker/attacker_baremetal.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/availability/attacker/attacker_baremetal.py b/yardstick/benchmark/scenarios/availability/attacker/attacker_baremetal.py index 22de0b645..50d44c1ca 100644 --- a/yardstick/benchmark/scenarios/availability/attacker/attacker_baremetal.py +++ b/yardstick/benchmark/scenarios/availability/attacker/attacker_baremetal.py @@ -9,7 +9,6 @@ from __future__ import absolute_import import logging import subprocess -import traceback import yardstick.ssh as ssh from yardstick.benchmark.scenarios.availability.attacker.baseattacker import \ @@ -26,9 +25,7 @@ def _execute_shell_command(command, stdin=None): output = subprocess.check_output(command, stdin=stdin, shell=True) except Exception: exitcode = -1 - output = traceback.format_exc() - LOG.error("exec command '%s' error:\n ", command) - LOG.error(traceback.format_exc()) + LOG.error("exec command '%s' error:\n ", command, exc_info=True) return exitcode, output |