mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix error:
```
2019-12-05 19:03:43,286 ERROR [galaxy.jobs.runners] (2) Failure preparing job
Traceback (most recent call last):
File "/tmp/tmpwRXIXJ/galaxy-dev/lib/galaxy/jobs/runners/__init__.py", line 230, in prepare_job
job_wrapper.prepare()
File "/tmp/tmpwRXIXJ/galaxy-dev/lib/galaxy/jobs/__init__.py", line 1066, in prepare
self.command_line, self.extra_filenames, self.environment_variables = tool_evaluator.build()
File "/tmp/tmpwRXIXJ/galaxy-dev/lib/galaxy/tools/evaluation.py", line 480, in build
raise e
TypeError: argument of type 'SelectToolParameterWrapper' is not iterable
FAIL
```
when running `planemo test` on a tool which specify a multiple select param:
```xml
<param name="plots" type="select" multiple="true" ...>
<option value="vln" selected="true">Violin and Scatter plots</option>
<option value="feat" selected="true">Feature counts plots</option>
...
</param>
```
with a single value in the test:
```xml
<param name="plots" value="feat" />
```
and the command contains code like:
```
#if "vln" in $meta.plots:
```
Seen in Travis job:
https://travis-ci.org/galaxyproject/tools-iuc/jobs/621235187
for pull request:
https://github.com/galaxyproject/tools-iuc/pull/2625
Also:
- don't unnecessarily copy a list in `listify()` function