Skip to content

Commit

Permalink
Merge pull request #3047 from galaxyproject/tool_tarball_fix
Browse files Browse the repository at this point in the history
Fix downloading tool tarball with boolean test input values.
  • Loading branch information
martenson committed Oct 14, 2016
2 parents d26f464 + f6d5f3c commit e5913a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/galaxy/tools/__init__.py
Expand Up @@ -1538,9 +1538,10 @@ def to_archive(self):
# Add input file tuples to the list.
for input in test.inputs:
for input_value in test.inputs[ input ]:
input_path = os.path.abspath( os.path.join( 'test-data', input_value ) )
input_filename = str( input_value )
input_path = os.path.abspath( os.path.join( 'test-data', input_filename ) )
if os.path.exists( input_path ):
td_tup = ( input_path, os.path.join( 'test-data', input_value ) )
td_tup = ( input_path, os.path.join( 'test-data', input_filename ) )
tarball_files.append( td_tup )
# And add output file tuples to the list.
for label, filename, _ in test.outputs:
Expand Down

0 comments on commit e5913a4

Please sign in to comment.