Changeset 871b664 for src/tests/test.py


Ignore:
Timestamp:
Mar 1, 2017, 3:38:33 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
088a5cd, bf8da66
Parents:
a62cbb3
Message:

Fixed path issues in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    ra62cbb3 r871b664  
    3333
    3434def listTestsFolder(folder) :
    35         path = ('./.expect/%s' % folder) if folder else './expect'
     35        path = ('./.expect/%s/' % folder) if folder else './.expect/'
     36        subpath = "%s/" % folder if folder else ""
    3637
    3738        # tests directly in the .expect folder will always be processed
    38         return map(lambda fname: Test(fname, '%s/%s' % (path, fname)),
     39        return map(lambda fname: Test(fname, subpath + fname),
    3940                [splitext(f)[0] for f in listdir( path )
    4041                if not f.startswith('.') and f.endswith('.txt')
     
    4647
    4748        # tests directly in the .expect folder will always be processed
    48         generic_list = listTestsFolder( "." )
     49        generic_list = listTestsFolder( "" )
    4950
    5051        # tests in the machineType folder will be ran only for the corresponding compiler
Note: See TracChangeset for help on using the changeset viewer.