diff options
author | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-09-22 12:10:33 +0000 |
---|---|---|
committer | Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> | 2017-09-23 00:27:39 +0000 |
commit | d4732d5bd317841069be35d18474ba98b17c75de (patch) | |
tree | 4dc8195c85a707601a4531a9d4cca20bbf2a4fbc /baro_tests/collectd.py | |
parent | 7b13f9babfff25d01c521a14f9db901542981945 (diff) |
Adding improvements to Barometer testcases
This patch conatins changes to path of files
mce-inject_ea and csv.conf
Change-Id: Ifbe4eb6f875753b58f5ee4ecc12baa014e15b03a
Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
Diffstat (limited to 'baro_tests/collectd.py')
-rw-r--r-- | baro_tests/collectd.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/baro_tests/collectd.py b/baro_tests/collectd.py index 6ddb921c..1b5a9232 100644 --- a/baro_tests/collectd.py +++ b/baro_tests/collectd.py @@ -33,7 +33,6 @@ APEX_IP = os.getenv("INSTALLER_IP").rstrip('\n') APEX_USER = 'root' APEX_USER_STACK = 'stack' APEX_PKEY = '/root/.ssh/id_rsa' -PATH = os.path.dirname(os.path.realpath(__file__)) class KeystoneException(Exception): @@ -624,6 +623,7 @@ def mcelog_install(): APEX_USER_STACK, APEX_PKEY) nodes = handler.get_nodes() + mce_bin = os.path.dirname(os.path.realpath(__file__)) + '/mce-inject_ea' for node in nodes: if node.is_compute(): centos_release = node.run_cmd('uname -r') @@ -648,9 +648,7 @@ def mcelog_install(): logger.info( 'Mcelog will be enabled on node-{}...'.format( node.get_dict()['id'])) - node.put_file( - 'PATH/' - + 'mce-inject_ea', 'mce-inject_ea') + node.put_file(mce_bin, 'mce-inject_ea') node.run_cmd('chmod a+x mce-inject_ea') node.run_cmd('echo "CPU 0 BANK 0" > corrected') node.run_cmd( |