Ignore:
Timestamp:
Aug 14, 2018, 4:10:58 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
636e1b9
Parents:
c3a8ecd (diff), 5a5d31a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    rc3a8ecd r7cd8827  
    5252# Remove 1 or more files silently
    5353def rm( files ):
    54         try:
     54        if isinstance( files, basestring ):
     55                sh("rm -f %s > /dev/null 2>&1" % files )
     56        else:
    5557                for file in files:
    5658                        sh("rm -f %s > /dev/null 2>&1" % file )
    57         except TypeError:
    58                 sh("rm -f %s > /dev/null 2>&1" % files )
    5959
    6060# Create 1 or more directory
    6161def mkdir( files ):
    62         try:
     62        if isinstance( files, basestring ):
     63                sh("mkdir -p %s" % os.path.dirname(files) )
     64        else:
    6365                for file in files:
    6466                        sh("mkdir -p %s" % os.path.dirname(file) )
    65         except TypeError:
    66                 sh("mkdir -p %s" % os.path.dirname(files) )
     67
    6768
    6869def chdir( dest = __main__.__file__ ):
     
    100101                '-s' if silent else '',
    101102                test_param,
     103                settings.arch.flags,
    102104                settings.debug.flags,
     105                settings.install.flags,
    103106                flags,
    104107                target,
Note: See TracChangeset for help on using the changeset viewer.