summaryrefslogtreecommitdiff
path: root/cs/config/TestUtil.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-06-13 18:03:40 +0800
committerMatthew Newhook <matthew@zeroc.com>2007-06-13 18:03:40 +0800
commit800d9fc7021b9648c1f298a1c67abc6c5536febe (patch)
tree07e6e6826e3a86705d3d98cd9f3044f9bc19297b /cs/config/TestUtil.py
parentFixed typos for bug 2225. (diff)
downloadice-800d9fc7021b9648c1f298a1c67abc6c5536febe.tar.bz2
ice-800d9fc7021b9648c1f298a1c67abc6c5536febe.tar.xz
ice-800d9fc7021b9648c1f298a1c67abc6c5536febe.zip
Fixed bug with TestUtil.cleanDbDir and IceGridAdmin.cleanDbDir.
Added back accidently erased .gitignore files. Added clean rules to IceGrid demo Makefiles.
Diffstat (limited to 'cs/config/TestUtil.py')
-rw-r--r--cs/config/TestUtil.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/cs/config/TestUtil.py b/cs/config/TestUtil.py
index 648c6ac9d9d..18044d08cf6 100644
--- a/cs/config/TestUtil.py
+++ b/cs/config/TestUtil.py
@@ -505,10 +505,5 @@ def clientTest(name):
clientTestWithOptions(name, "")
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)
+ for filename in [ os.path.join(path, f) for f in os.listdir(path) if f != ".gitignore"]:
+ os.remove(filename)