-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
exiv2
: verbose extract stdout mutli-file (#2068)
When using `exiv2 --verbose --extract` with stdout and multiple files, the output is concatenated together.
- Loading branch information
1 parent
fde0f9e
commit 46c3290
Showing
3 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- 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] | ||
|