summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/cursor/run.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/test/Freeze/cursor/run.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/test/Freeze/cursor/run.py')
-rwxr-xr-xcpp/test/Freeze/cursor/run.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/cpp/test/Freeze/cursor/run.py b/cpp/test/Freeze/cursor/run.py
index 57b9c63aa8d..30b4dca26db 100755
--- a/cpp/test/Freeze/cursor/run.py
+++ b/cpp/test/Freeze/cursor/run.py
@@ -12,18 +12,22 @@
import os, sys
for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
- if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")):
+ if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
break
else:
raise "can't find toplevel directory!"
-sys.path.append(os.path.normpath(toplevel + "/config"))
+sys.path.append(os.path.join(toplevel, "config"))
import TestUtil
-name = "Freeze/cursor"
+name = os.path.join("Freeze", "cursor")
-testdir = os.path.normpath(toplevel + "/test/" + name)
-client = os.path.normpath(testdir + "/client")
+testdir = os.path.join(toplevel, "test", name)
+
+dbdir = os.path.join(testdir, "db")
+TestUtil.cleanDbDir(dbdir)
+
+client = os.path.join(testdir, "client")
clientOptions = ' ' + testdir;
print "starting client...",