1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/4d559a181a57/ changeset: 4d559a181a57 user: carlfeberhard date: 2013-02-27 22:52:43 summary: browser tests: fix to error reporting for saved output dir creation affected #: 1 file diff -r 65ca85b0d55c57ce44f5b3f12bbf0008ac26e745 -r 4d559a181a5721e5a183ede3fdd59b3e89b8d9f2 test/casperjs/server_env.py --- a/test/casperjs/server_env.py +++ b/test/casperjs/server_env.py @@ -21,7 +21,7 @@ ENV_HISTORY_ID = 'GALAXY_TEST_HISTORY_ID' ENV_FILE_DIR = 'GALAXY_TEST_FILE_DIR' ENV_TOOL_SHED_TEST_FILE = 'GALAXY_TOOL_SHED_TEST_FILE' - ENV_SAVED_FILES_DIR = 'GALAXY_TEST_SAVE' + ENV_SAVED_FILES_DIR = 'GALAXY_TEST_SAVE' # AKA: twilltestcase.keepOutdir DEFAULT_PROTOCOL = 'http' DEFAULT_HOST = 'localhost' @@ -54,7 +54,8 @@ 'tool_shed_test_file', self.ENV_TOOL_SHED_TEST_FILE, default=None ) self.shed_tools_dict = self._get_shed_tools_dict() - self.keepOutdir = self._get_setting_from_config_or_env( 'keepOutdir', self.ENV_SAVED_FILES_DIR, default=None ) + self.keepOutdir = self._get_setting_from_config_or_env( + 'saved_output_dir', self.ENV_SAVED_FILES_DIR, default=None ) self._init_saved_files_dir() def _get_setting_from_config_or_env( self, config_name, env_name, default=False ): @@ -81,13 +82,15 @@ return {} def _init_saved_files_dir( self ): - """Set up the desired directory to save test output + """Set up the desired directory to save test output. """ - if self.keepOutdir > '': + if self.saved_output_dir > '': try: - os.makedirs( self.keepOutdir ) - except: - log.debug( 'unable to create saved files directory: %s' %( self.keepOutDir ) ) + os.makedirs( self.saved_output_dir ) + except Exception, exc: + log.error( 'unable to create saved files directory "%s": %s', + self.saved_output_dir, exc, exc_info=True ) + self.saved_output_dir = None @property def url( self ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.