Bug fix in scripts/functional_tests.py.

A tempdir is referenced before it is created in certain cases.
This commit is contained in:
John Chilton
2013-10-14 21:50:12 -05:00
parent ce643e393a
commit 0f63caaff0
+1 -1
View File
@@ -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' )