-
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.
Merge pull request #1476 from Exiv2/fix_1471_sony2010_0.27
Fix 1471 sony2010 0.27
- Loading branch information
Showing
6 changed files
with
62 additions
and
10 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path | ||
@CopyTmpFiles("$data_path/test_issue_1471.exv") | ||
|
||
class test_issue_1471Test(metaclass=CaseMeta): | ||
|
||
filename = path("$tmp_path/test_issue_1471.exv") | ||
commands = [ "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename" | ||
, "$exiv2 -M\"set Exif.Image.ImageID foobar\" $filename" | ||
, "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename" | ||
] | ||
stdout = ["Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n" | ||
,"" | ||
,"Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n" | ||
] | ||
stderr = [""]*len(commands) | ||
retval = [ 0]*len(commands) |
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,29 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path | ||
@CopyTmpFiles("$data_path/test_issue_1472.jpg") | ||
|
||
class test_issue_1472Test(metaclass=CaseMeta): | ||
|
||
filename = path("$tmp_path/test_issue_1472.jpg") | ||
exvfile = path("$tmp_path/test_issue_1472.exv") | ||
commands = [ "rm -rf $exvfile" | ||
, "$exiv2 -pa --grep LensType2 $filename" | ||
, "$exiv2 ex $filename" | ||
, "$exiv2 -pa --grep LensType2 $exvfile" | ||
, "$exiv2 rm $filename" | ||
, "$exiv2 -pa --grep LensType2 $filename" | ||
, "$exiv2 in $filename" | ||
, "$exiv2 -pa --grep LensType2 $filename" | ||
] | ||
stdout = ["" | ||
,"Exif.Sony2010e.LensType2 Short 1 1024\n" | ||
,"" | ||
,"Exif.Sony2010e.LensType2 Short 1 1024\n" | ||
,"" | ||
,"" | ||
,"" | ||
,"Exif.Sony2010e.LensType2 Short 1 1024\n" | ||
] | ||
stderr = [""]*len(commands) | ||
retval = [ 0,0,0,0,0,1,0,0] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[General] | ||
timeout: 2 | ||
timeout: 20.0 | ||
memcheck: ${ENV:valgrind} | ||
|
||
[ENV] | ||
|