Changeset 455a7d5 for tests/pybin/tools.py
- Timestamp:
- Aug 9, 2018, 6:35:02 PM (7 years ago)
- 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:
- ea5b7d6
- Parents:
- fb975a50 (diff), 0c827019 (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. - File:
-
- 1 moved
-
tests/pybin/tools.py (moved) (moved from src/tests/pybin/tools.py ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
rfb975a50 r455a7d5 52 52 # Remove 1 or more files silently 53 53 def rm( files ): 54 try: 54 if isinstance( files, basestring ): 55 sh("rm -f %s > /dev/null 2>&1" % files ) 56 else: 55 57 for file in files: 56 58 sh("rm -f %s > /dev/null 2>&1" % file ) 57 except TypeError:58 sh("rm -f %s > /dev/null 2>&1" % files )59 59 60 60 # Create 1 or more directory 61 61 def mkdir( files ): 62 try: 62 if isinstance( files, basestring ): 63 sh("mkdir -p %s" % os.path.dirname(files) ) 64 else: 63 65 for file in files: 64 66 sh("mkdir -p %s" % os.path.dirname(file) ) 65 except TypeError: 66 sh("mkdir -p %s" % os.path.dirname(files) ) 67 67 68 68 69 def chdir( dest = __main__.__file__ ): … … 100 101 '-s' if silent else '', 101 102 test_param, 103 settings.arch.flags, 102 104 settings.debug.flags, 105 settings.install.flags, 103 106 flags, 104 107 target,
Note:
See TracChangeset
for help on using the changeset viewer.