Skip to content

Commit

Permalink
Merge pull request #3365 from jmchilton/integration_tests_1
Browse files Browse the repository at this point in the history
Attempt to fix broken integration tests on Jenkins.
  • Loading branch information
bgruening committed Dec 26, 2016
2 parents 58c1828 + a0aa70b commit 261524e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/galaxy/config.py
Expand Up @@ -73,7 +73,9 @@ def __init__( self, **kwargs ):
# Where dataset files are stored
self.file_path = resolve_path( kwargs.get( "file_path", "database/files" ), self.root )
self.new_file_path = resolve_path( kwargs.get( "new_file_path", "database/tmp" ), self.root )
tempfile.tempdir = self.new_file_path
override_tempdir = string_as_bool( kwargs.get( "override_tempdir", "True" ) )
if override_tempdir:
tempfile.tempdir = self.new_file_path
self.openid_consumer_cache_path = resolve_path( kwargs.get( "openid_consumer_cache_path", "database/openid_consumer_cache" ), self.root )
self.cookie_path = kwargs.get( "cookie_path", "/" )
# Galaxy OpenID settings
Expand Down
1 change: 1 addition & 0 deletions test/base/driver_util.py
Expand Up @@ -184,6 +184,7 @@ def setup_galaxy_config(
library_import_dir=library_import_dir,
log_destination="stdout",
new_file_path=new_file_path,
override_tempdir=False,
master_api_key=master_api_key,
running_functional_tests=True,
shed_tool_data_table_config=shed_tool_data_table_config,
Expand Down
6 changes: 3 additions & 3 deletions test/integration/test_job_resubmission.py
Expand Up @@ -53,9 +53,9 @@ def test_condition_expressions(self):
"failure_state": "unknown_error"})

def test_condition_any_failure(self):
self._assert_job_fails(resource_parameters={"test_name": "test_condition_any_failure",
"initial_destination": "fail_first_any_failure",
"failure_state": "unknown_error"})
self._assert_job_passes(resource_parameters={"test_name": "test_condition_any_failure",
"initial_destination": "fail_first_any_failure",
"failure_state": "unknown_error"})

def test_condition_attempt(self):
self._assert_job_fails(resource_parameters={"test_name": "test_condition_attempt",
Expand Down

0 comments on commit 261524e

Please sign in to comment.