Changes in tests/pybin/tools.py [dcfedca:35a408b7]
- File:
-
- 1 edited
-
tests/pybin/tools.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
rdcfedca r35a408b7 2 2 import argparse 3 3 import contextlib 4 import datetime5 4 import fileinput 6 5 import multiprocessing … … 274 273 ################################################################################ 275 274 276 def pretty_now():277 ts = time.time()278 print(ts, file=sys.stderr)279 return datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d_%H:%M:%S')280 281 275 # check if arguments is yes or no 282 276 def yes_no(string): … … 310 304 return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output=subprocess.PIPE) 311 305 312 def core_archive(dst, name, exe):313 # Get the files to copy314 core = os.path.join(os.getcwd(), "core" )315 316 # Uncomment if we want timestamps on coredumps317 # dst = os.path.join(dst, "%s_%s" % (name, pretty_now()))318 319 # make a directory for this test320 mkdir(os.path.join(dst, "dir"))321 322 # moves the files323 mv( core, os.path.join(dst, "core" ) )324 mv( exe , os.path.join(dst, name ) )325 326 # return explanatory test327 return "Archiving %s (executable and core) to %s" % (os.path.relpath(exe, settings.BUILDDIR), os.path.relpath(dst, settings.original_path))328 329 306 class Timed: 330 307 def __enter__(self):
Note:
See TracChangeset
for help on using the changeset viewer.