I tried that and the directories don't get removed however the job files still get deleted.

On Fri, Jun 12, 2015 at 12:03 PM, Peter Cock <p.j.a.cock@googlemail.com> wrote:
Hi Ryan,

Something very handy for tool developers running functional tests
is if the environment variable GALAXY_TEST_NO_CLEANUP
is set, run_tests.sh shouldn't remove the test output.

This is great when debugging why a test is failing.

Peter


On Fri, Jun 12, 2015 at 4:29 PM, Ryan G <ngsbioinformatics@gmail.com> wrote:
> I'd like to recommend a change.  If jobs fail to run during functional
> tests, I'd like to keep the failed job files around to be examined.  I added
> the following to do so:
>
> +++ scripts/functional_tests.py
> @@ -372,6 +372,7 @@ def main():
>                         user_library_import_dir=user_library_import_dir,
>                         master_api_key=master_api_key,
>                         use_tasked_jobs=True,
> +                       cleanup_job='onsuccess'
>          )
>          if install_database_connection is not None:
>              kwargs[ 'install_database_connection' ] =
> install_database_connection
>
>
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>   https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/