Changeset 514 for trunk/game/tests


Ignore:
Timestamp:
03/08/10 23:09:16 (10 years ago)
Author:
beliar
Message:

Fixed dialogue test and modified the install script to include the .license files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/tests/test_dialogue.py

    r378 r514  
    161161        diag_dir = os.path.join(os.path.curdir, "dialogue"); 
    162162        num_faulty_files = 0 
     163        ignore_ext = (".license") 
    163164         
    164165        # Test the dialogue files  
    165166        for dialogue in os.listdir(diag_dir): 
    166167            fname = os.path.join(diag_dir, dialogue) 
    167             if os.path.isfile(fname) : 
     168            ext = os.path.splitext(fname)[1] 
     169            if os.path.isfile(fname) and ext not in ignore_ext: 
    168170                try: 
    169171                    assert(val.validateDialogueFromFile(fname,".")) 
Note: See TracChangeset for help on using the changeset viewer.