/[libvob]/libvob/test.py
ViewVC logotype

Diff of /libvob/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by benja, Thu May 15 21:38:34 2003 UTC revision 1.3 by tjl, Sun Aug 31 12:27:36 2003 UTC
# Line 153  def tests(files): Line 153  def tests(files):
153      """      """
154    
155      def addTests(list, dirname, names):      def addTests(list, dirname, names):
156            if dirname[0] in [',', '{']: return
157            if len(dirname) > 2 and dirname[2] in [',', '{']: return
158          names = [n for n in names if fnmatch.fnmatch(n, '*.test')]          names = [n for n in names if fnmatch.fnmatch(n, '*.test')]
159          names = [os.path.join(dirname, name) for name in names]          names = [os.path.join(dirname, name) for name in names]
160          list.extend(names)          list.extend(names)
# Line 163  def tests(files): Line 165  def tests(files):
165              os.path.walk(f, addTests, tests)              os.path.walk(f, addTests, tests)
166          else:          else:
167              tests.append(f)              tests.append(f)
168        print "Tests: ",tests
169      return tests      return tests
170    
171    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26