From 0f63caaff0699f7bffcfb1bd01b698d312e379a2 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 14 Oct 2013 21:50:12 -0500 Subject: [PATCH] Bug fix in scripts/functional_tests.py. A tempdir is referenced before it is created in certain cases. --- scripts/functional_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functional_tests.py b/scripts/functional_tests.py index fa783b50598..f2c088bd641 100644 --- a/scripts/functional_tests.py +++ b/scripts/functional_tests.py @@ -230,11 +230,11 @@ def main(): default_cluster_job_runner = default_cluster_job_runner ) psu_production = True else: + tempdir = tempfile.mkdtemp( dir=galaxy_test_tmp_dir ) # Configure the database path. if 'GALAXY_TEST_DBPATH' in os.environ: galaxy_db_path = os.environ[ 'GALAXY_TEST_DBPATH' ] else: - tempdir = tempfile.mkdtemp( dir=galaxy_test_tmp_dir ) galaxy_db_path = os.path.join( tempdir, 'database' ) # Configure the paths Galaxy needs to test tools. file_path = os.path.join( galaxy_db_path, 'files' )