diff options
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py index fa1ce1954fa..280d29507b8 100644 --- a/java/config/TestUtil.py +++ b/java/config/TestUtil.py @@ -531,10 +531,5 @@ def collocatedTest(): collocatedTestWithOptions("") 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) |