summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2001-12-06 13:35:19 +0000
committerMatthew Newhook <matthew@zeroc.com>2001-12-06 13:35:19 +0000
commit119382a8122dc0ca1e7805e638a12a667d100866 (patch)
tree15af9ac8f9a1aea2980909e9a8f21244262db169 /cpp/config/TestUtil.py
parentporting against C++ tag icej_baseline_12052001; removing server components (diff)
downloadice-119382a8122dc0ca1e7805e638a12a667d100866.tar.bz2
ice-119382a8122dc0ca1e7805e638a12a667d100866.tar.xz
ice-119382a8122dc0ca1e7805e638a12a667d100866.zip
Some python changes.
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index 9a0be8007b5..4256d247bde 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -70,9 +70,9 @@ def getAdapterReady(serverPipe):
def clientServerTest(toplevel, name):
- testdir = os.path.normpath(toplevel + "/test/" + name)
- server = os.path.normpath(testdir + "/server")
- client = os.path.normpath(testdir + "/client")
+ testdir = os.path.join(toplevel, "test", name)
+ server = os.path.join(testdir, "server")
+ client = os.path.join(testdir, "client")
updatedServerOptions = serverOptions.replace("TOPLEVELDIR", toplevel)
updatedClientOptions = clientOptions.replace("TOPLEVELDIR", toplevel)
@@ -100,8 +100,8 @@ def clientServerTest(toplevel, name):
def collocatedTest(toplevel, name):
- testdir = os.path.normpath(toplevel + "/test/" + name)
- collocated = os.path.normpath(testdir + "/collocated")
+ testdir = os.path.join(toplevel, "test", name)
+ collocated = os.path.join(testdir, "collocated")
updatedCollocatedOptions = collocatedOptions.replace("TOPLEVELDIR", toplevel)
@@ -113,3 +113,10 @@ def collocatedTest(toplevel, name):
sys.exit(1)
print "ok"
print output
+
+def cleanDbDir(path):
+ files = os.listdir(path)
+ for filename in files:
+ if filename != "CVS" and filename != ".dummy":
+ fullpath = os.path.join(path, filename);
+ os.remove(fullpath)