diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-07-13 23:14:07 -0700 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-07-13 23:25:42 -0700 |
commit | 27b714eaf81c38ff06635f6ca809cdcd46ee2cf7 (patch) | |
tree | 75d5da2bc949afa50c2f86669784937466a9ccbf /yardstick/benchmark/scenarios/availability/monitor | |
parent | 3f1a658fce4b3d81fa2b15ab1879fd37aad80760 (diff) |
test_monitor_command: mock LOG so we don't output error
Don't print fake tracebacks to the unittest logs
Change-Id: I8a468b8c6566f02be88a9dd222567c14c66b0956
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/monitor')
-rw-r--r-- | yardstick/benchmark/scenarios/availability/monitor/monitor_command.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py b/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py index a0777f94e..a9488cc30 100644 --- a/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py +++ b/yardstick/benchmark/scenarios/availability/monitor/monitor_command.py @@ -11,7 +11,6 @@ from __future__ import absolute_import import os import logging import subprocess -import traceback import yardstick.ssh as ssh from yardstick.benchmark.scenarios.availability.monitor import basemonitor @@ -27,9 +26,7 @@ def _execute_shell_command(command): output = subprocess.check_output(command, 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 |