1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/7e31d5c0a42d/ changeset: r5106:7e31d5c0a42d user: dan date: 2011-02-22 22:56:11 summary: Allow toolbox tests to upload a file found located in subdirectories. Fix a bug occurring on the determination of uploaded dataset name during the handling of the removal of .gzip or .zip extension from the uploaded filenames within the toolbox test framework. affected #: 1 file (127 bytes) --- a/test/functional/test_toolbox.py Tue Feb 22 15:31:57 2011 -0500 +++ b/test/functional/test_toolbox.py Tue Feb 22 16:56:11 2011 -0500 @@ -1,4 +1,5 @@ import sys, new +import os.path from galaxy.tools.parameters import grouping from galaxy.tools.parameters import basic from base.twilltestcase import TwillTestCase @@ -58,8 +59,9 @@ if value: for end in [ '.zip', '.gz' ]: if value.endswith( end ): - value = value.rstrip( end ) + value = value[ :-len( end ) ] break + value = os.path.basename( value ) #if uploading a file in a path other than root of test-data all_inputs[ name ] = value # See if we have a grouping.Repeat element repeat_name = None 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.