You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by vi...@apache.org on 2014/01/31 00:28:00 UTC

git commit: ACCUMULO-2220 supporting ACCUMULO_CONF_DIR in test/system/bench

Updated Branches:
  refs/heads/1.4.5-SNAPSHOT 9bff89fc2 -> 4d8977c89


ACCUMULO-2220 supporting ACCUMULO_CONF_DIR in test/system/bench


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4d8977c8
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4d8977c8
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4d8977c8

Branch: refs/heads/1.4.5-SNAPSHOT
Commit: 4d8977c891017701d4ff2873439fc884b4a4ea57
Parents: 9bff89f
Author: John Vines <vi...@apache.org>
Authored: Thu Jan 30 18:27:31 2014 -0500
Committer: John Vines <vi...@apache.org>
Committed: Thu Jan 30 18:27:31 2014 -0500

----------------------------------------------------------------------
 test/system/bench/lib/path.py   | 7 +++++++
 test/system/bench/lib/slaves.py | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/4d8977c8/test/system/bench/lib/path.py
----------------------------------------------------------------------
diff --git a/test/system/bench/lib/path.py b/test/system/bench/lib/path.py
index 6dc4009..22b8309 100755
--- a/test/system/bench/lib/path.py
+++ b/test/system/bench/lib/path.py
@@ -18,10 +18,17 @@ import os
 
 HERE = os.path.dirname(__file__)
 ACCUMULO_HOME = os.getenv('ACCUMULO_HOME')
+if not os.getenv('ACCUMULO_CONF_DIR'):
+  ACCUMULO_CONF_DIR = ACCUMULO_HOME+'/conf'
+else:
+  ACCUMULO_CONF_DIR = os.getenv('ACCUMULO_CONF_DIR')
 
 def accumulo(*args):
     return os.path.join(ACCUMULO_HOME, *args)
 
+def accumuloConf(*args):
+    return os.path.join(ACCUMULO_CONF_DIR, *args)
+
 def accumuloJar():
     import glob
     options = (glob.glob(accumulo('lib', 'accumulo*.jar')) +

http://git-wip-us.apache.org/repos/asf/accumulo/blob/4d8977c8/test/system/bench/lib/slaves.py
----------------------------------------------------------------------
diff --git a/test/system/bench/lib/slaves.py b/test/system/bench/lib/slaves.py
index 8fb49f2..451d603 100755
--- a/test/system/bench/lib/slaves.py
+++ b/test/system/bench/lib/slaves.py
@@ -24,7 +24,7 @@ from lib.path import accumulo
 from lib.options import log
 
 def slaveNames():
-    return [s.strip() for s in open(accumulo('conf', 'slaves'))]
+    return [s.strip() for s in open(accumuloConf('slaves'))]
 
 def runEach(commandMap):
     result = {}