Index: tests/pybin/settings.py
===================================================================
--- tests/pybin/settings.py	(revision a8d4b592d6ba9a45a01127ff6b84417756735aa4)
+++ tests/pybin/settings.py	(revision dcfedca2ab0d1ebb192a77d365a82ec5bcb91edf)
@@ -4,5 +4,8 @@
 from . import tools
 
+global original_path
+
 try :
+	original_path = os.getcwd()
 	testpath = os.path.dirname(os.path.abspath(os.path.join(os.getcwd(), sys.argv[0])))
 	sys.path.append(testpath)
@@ -113,4 +116,5 @@
 	global timeout
 	global output_width
+	global archive
 
 	dry_run      = options.dry_run
@@ -122,4 +126,5 @@
 	timeout      = Timeouts(options.timeout, options.global_timeout)
 	output_width = 24
+	archive      = os.path.abspath(os.path.join(original_path, options.archive_errors)) if options.archive_errors else None
 
 
Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision a8d4b592d6ba9a45a01127ff6b84417756735aa4)
+++ tests/pybin/tools.py	(revision dcfedca2ab0d1ebb192a77d365a82ec5bcb91edf)
@@ -2,4 +2,5 @@
 import argparse
 import contextlib
+import datetime
 import fileinput
 import multiprocessing
@@ -273,4 +274,9 @@
 ################################################################################
 
+def pretty_now():
+	ts = time.time()
+	print(ts, file=sys.stderr)
+	return datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d_%H:%M:%S')
+
 # check if arguments is yes or no
 def yes_no(string):
@@ -304,4 +310,21 @@
 	return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output=subprocess.PIPE)
 
+def core_archive(dst, name, exe):
+	# Get the files to copy
+	core = os.path.join(os.getcwd(), "core" )
+
+	# Uncomment if we want timestamps on coredumps
+	# dst  = os.path.join(dst, "%s_%s" % (name, pretty_now()))
+
+	# make a directory for this test
+	mkdir(os.path.join(dst, "dir"))
+
+	# moves the files
+	mv( core, os.path.join(dst, "core" ) )
+	mv( exe , os.path.join(dst, name   ) )
+
+	# return explanatory test
+	return "Archiving %s (executable and core) to %s" % (os.path.relpath(exe, settings.BUILDDIR), os.path.relpath(dst, settings.original_path))
+
 class Timed:
     def __enter__(self):
