From caa0aa4a1d49f00b8f109fba704a7d4f65f2b11a Mon Sep 17 00:00:00 2001 From: postscript-dev Date: Thu, 29 Jul 2021 11:53:24 +0100 Subject: [PATCH] Add SonySInfo1 testing SonySInfo1 is currently supported by all Sony cameras so does not need to test for unsupported models. --- tests/bugfixes/github/test_pr_1808.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/bugfixes/github/test_pr_1808.py diff --git a/tests/bugfixes/github/test_pr_1808.py b/tests/bugfixes/github/test_pr_1808.py new file mode 100644 index 00000000..58b76eee --- /dev/null +++ b/tests/bugfixes/github/test_pr_1808.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, path + +#Full support for SonyMisc3c tags using this model +class SonyMisc3cSupportedTest(metaclass=CaseMeta): + + filename = path("$data_path/exiv2-SonyDSC-HX60V.exv") + commands = ["$exiv2 -pa --grep SonySInfo1 $filename"] + + stdout = ["""Exif.SonySInfo1.SonyDateTime Ascii 20 2014:01:01 00:52:22 +Exif.SonySInfo1.SonyImageHeight Short 1 3888 +Exif.SonySInfo1.SonyImageWidth Short 1 5184 +Exif.SonySInfo1.FacesDetected Short 1 0 +Exif.SonySInfo1.MetaVersion Ascii 16 DC7303320222000 +""" + ] + stderr = [""] + retval = [0] +