diff --git a/scripts/functional_tests.py b/scripts/functional_tests.py
index 8357e3618fd..8ebd5fefdb8 100644
--- a/scripts/functional_tests.py
+++ b/scripts/functional_tests.py
@@ -47,6 +47,8 @@ def main():
galaxy_test_host = os.environ.get( 'GALAXY_TEST_HOST', default_galaxy_test_host )
galaxy_test_port = os.environ.get( 'GALAXY_TEST_PORT', None )
+ galaxy_test_save = os.environ.get( 'GALAXY_TEST_SAVE', None)
+
if 'HTTP_ACCEPT_LANGUAGE' not in os.environ:
os.environ['HTTP_ACCEPT_LANGUAGE'] = default_galaxy_locales
galaxy_test_file_dir = os.environ.get( 'GALAXY_TEST_FILE_DIR', default_galaxy_test_file_dir )
@@ -126,10 +128,14 @@ def main():
print "Database connection:", database_connection
- # What requires these?
+ # What requires these?
+ # handy for (eg) functional tests to save outputs?
+ if galaxy_test_save:
+ os.environ['GALAXY_TEST_SAVE'] = galaxy_test_save
+ # pass in through script setenv
+ # will leave a copy of ALL test validate files
os.environ['GALAXY_TEST_HOST'] = galaxy_test_host
os.environ['GALAXY_TEST_FILE_DIR'] = galaxy_test_file_dir
-
# ---- Build Application --------------------------------------------------
app = None
diff --git a/test/base/twilltestcase.py b/test/base/twilltestcase.py
index ca959007cb1..89217949f1d 100644
--- a/test/base/twilltestcase.py
+++ b/test/base/twilltestcase.py
@@ -32,7 +32,14 @@ class TwillTestCase( unittest.TestCase ):
self.port = os.environ.get( 'GALAXY_TEST_PORT' )
self.url = "http://%s:%s" % ( self.host, self.port )
self.file_dir = os.environ.get( 'GALAXY_TEST_FILE_DIR' )
+ self.keepOutdir = os.environ.get( 'GALAXY_TEST_SAVE', '' )
+ if self.keepOutdir > '':
+ try:
+ os.makedirs(self.keepOutdir)
+ except:
+ pass
self.home()
+
#self.set_history()
# Functions associated with files
@@ -632,6 +639,10 @@ class TwillTestCase( unittest.TestCase ):
self.visit_page( "display?hid=" + hid )
data = self.last_page()
file( temp_name, 'wb' ).write(data)
+ if self.keepOutdir > '':
+ ofn = os.path.join(self.keepOutdir,os.path.basename(local_name))
+ shutil.copy(temp_name,ofn)
+ log.debug('## GALAXY_TEST_SAVE=%s. saved %s' % (self.keepOutdir,ofn))
try:
# have to nest try-except in try-finally to handle 2.4
try:
diff --git a/tools/rgenetics/rgQC.xml b/tools/rgenetics/rgQC.xml
index 97da4d1c7ed..4d20c9d2423 100644
--- a/tools/rgenetics/rgQC.xml
+++ b/tools/rgenetics/rgQC.xml
@@ -28,6 +28,7 @@