Skip to content

Commit cd3b59b

Browse files
kannon92mr-c
andcommitted
Update tests/test_stdout_stderr_log_dir.py
Co-authored-by: Michael R. Crusoe <[email protected]>
1 parent 869e4b5 commit cd3b59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_stdout_stderr_log_dir.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
from cwltool.main import main
66

7-
from .util import get_main_output, needs_docker
7+
from .util import get_data, get_main_output, needs_docker
88

99

1010
def test_log_dir_echo_output() -> None:
1111
_, stdout, stderr = get_main_output(
12-
["--log-dir", "logs", "tests/echo.cwl", "--inp", "hello"]
12+
["--log-dir", "logs", get_data("tests/echo.cwl"), "--inp", "hello"]
1313
)
1414
assert "completed success" in stderr, stderr
1515
assert json.loads(stdout)["out"].strip("\n") == "hello"
1616

1717

1818
def test_log_dir_echo_no_output() -> None:
1919
_, stdout, stderr = get_main_output(
20-
["--log-dir", "logs", "tests/echo-stdout-log-dir.cwl", "--inp", "hello"]
20+
["--log-dir", "logs", get_data("tests/echo-stdout-log-dir.cwl"), "--inp", "hello"]
2121
)
2222
for dir in os.listdir("logs"):
2323
for file in os.listdir(f"logs/{dir}"):

0 commit comments

Comments
 (0)