exiv2/tests/bugfixes/github/test_pr_2068.py
Peter 46c329081f
Fix exiv2: verbose extract stdout mutli-file (#2068)
When using `exiv2 --verbose --extract` with stdout and multiple files, the output is concatenated together.
2022-02-05 16:43:34 +00:00

17 lines
405 B
Python

# -*- coding: utf-8 -*-
import system_tests
from system_tests import CaseMeta, path
class TestVerboseExtractStdoutMultiFile(metaclass=CaseMeta):
filename = path("$data_path/exiv2-empty.jpg")
commands = ["$exiv2 --verbose --extract X- $filename $filename"]
stdout = [""""""]
stderr = ["""exiv2: Only one file is allowed when extracting to stdout
"""]
retval = [1]