Skip to content

Commit 3350595

Browse files
committed
do not make a tmp copy of the wrappers, as for planemo serve
1 parent 673d9bb commit 3350595

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

planemo/commands/cmd_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Module describing the planemo ``test`` command."""
2+
from contextlib import ExitStack
3+
24
import click
35

46
from planemo import options
@@ -66,7 +68,11 @@ def cli(ctx, uris, **kwds):
6668
against that same Galaxy root - but this may not be bullet proof yet so
6769
please careful and do not try this against production Galaxy instances.
6870
"""
69-
with temp_directory(dir=ctx.planemo_directory) as temp_path:
71+
with ExitStack() as stack:
72+
if not kwds["serve"]:
73+
temp_path = stack.enter_context(temp_directory(dir=ctx.planemo_directory))
74+
else:
75+
temp_path = None
7076
# Create temp dir(s) outside of temp, docker can't mount $TEMPDIR on OSX
7177
runnables = for_runnable_identifiers(ctx, uris, kwds, temp_path=temp_path)
7278

0 commit comments

Comments
 (0)