Author: sebastien.lelong
Date: Tue Mar 24 09:04:34 2009
New Revision: 878

Modified:
    trunk/tools/jallib.py

Log:
fix get_jal_filenames's predicate taking 2 parameters (dir,file) + fix  
parameters type in jalapi action

Modified: trunk/tools/jallib.py
==============================================================================
--- trunk/tools/jallib.py       (original)
+++ trunk/tools/jallib.py       Tue Mar 24 09:04:34 2009
@@ -532,7 +532,7 @@
        testfiles = []
        for d in [d for d in os.listdir(testdir) if d != "board" and not  
d.startswith(".")]:
                d = os.path.join(testdir,d)
-               testfiles.extend([os.path.join(d,v) for v in  
get_jal_filenames(d,predicate=lambda x: x.startswith("test_")).values()])
+               testfiles.extend([os.path.join(d,v) for v in  
get_jal_filenames(d,predicate=lambda _,x: x.startswith("test_")).values()])
        return testfiles

  def preferred_board(board):
@@ -798,7 +798,7 @@
                for f,path in sorted(dfiles.items(),cmp=lambda x,y: 
cmp(x[0],y[0])):
                        files.append(os.path.join(w,path))
        else:
-               files = w
+               files = [w]
        
        jalinfos = []
        for jalfile in files:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to