Skip to content

Commit

Permalink
Test providing input file via process substitution
Browse files Browse the repository at this point in the history
See #772
  • Loading branch information
marcelm committed Apr 12, 2024
1 parent 8e444ac commit 76437b5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,3 +1142,17 @@ def test_does_not_hang_on_error_in_reader_process(tmp_path, cores):
],
)
assert e.value.args[0] == 1


def test_process_substitution(tmp_path, cores):
with open(datapath("small.fastq")) as infile:
inpath = f"/dev/fd/{infile.fileno()}"
main(
[
f"--cores={cores}",
"-o",
str(tmp_path / "out.fastq"),
inpath,
]
)
assert_files_equal(datapath("small.fastq"), tmp_path / "out.fastq")

0 comments on commit 76437b5

Please sign in to comment.