Skip to content

Commit d240794

Browse files
committed
Expose option to collect outputs from Galaxy tests runs into a directory.
1 parent a23f23c commit d240794

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

planemo/commands/cmd_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
type=click.Path(file_okay=True, resolve_path=True),
2525
help="Output test report.", default="tool_test_output.html"
2626
)
27+
@click.option(
28+
"--job_output_files",
29+
type=click.Path(file_okay=False, resolve_path=True),
30+
help="Write job outputs to directory.", default=None,
31+
)
2732
@options.galaxy_root_option()
2833
@options.install_galaxy_option()
2934
@options.test_data_option()
@@ -56,6 +61,8 @@ def cli(ctx, path, **kwds):
5661
server_ini = os.path.join(config.config_directory, "galaxy.ini")
5762
config.env["GALAXY_CONFIG_FILE"] = server_ini
5863
config.env["GALAXY_TEST_VERBOSE_ERRORS"] = "true"
64+
if kwds["job_output_files"]:
65+
config.env["GALAXY_TEST_SAVE"] = kwds["job_output_files"]
5966
cd_to_galaxy_command = "cd %s" % config.galaxy_root
6067
cmd = "; ".join([
6168
galaxy_run.DEACTIVATE_COMMAND,

0 commit comments

Comments
 (0)