summaryrefslogtreecommitdiff
path: root/java/test/Freeze/evictor/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Freeze/evictor/run.py')
-rwxr-xr-xjava/test/Freeze/evictor/run.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/java/test/Freeze/evictor/run.py b/java/test/Freeze/evictor/run.py
index 4813d2a4c49..0cb0f32d190 100755
--- a/java/test/Freeze/evictor/run.py
+++ b/java/test/Freeze/evictor/run.py
@@ -16,9 +16,9 @@ if len(head) > 0:
path = [os.path.join(head, p) for p in path]
path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
-sys.path.append(os.path.join(path[0]))
-from scripts import *
+ raise RuntimeError("can't find toplevel directory!")
+sys.path.append(os.path.join(path[0], "scripts"))
+import TestUtil
dbdir = os.path.join(os.getcwd(), "db")
TestUtil.cleanDbDir(dbdir)
@@ -26,4 +26,3 @@ TestUtil.cleanDbDir(dbdir)
testOptions = ' --Freeze.Warn.Deadlocks=0 --Freeze.DbEnv.db.DbHome="%s/db" --Ice.Config="%s/config" ' % (os.getcwd(), os.getcwd())
TestUtil.clientServerTest(testOptions, testOptions)
-