Commit 2d95ae41 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Correctly catch segfauling cd-iccdump binary.

parent fca2293a
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
# along with diffoscope.  If not, see <https://www.gnu.org/licenses/>.

import pytest
import signal
import subprocess

from diffoscope.config import Config
@@ -55,8 +56,7 @@ def cd_iccdump_version():
            ("cd-iccdump", data("test1.icc"))
        ).decode("utf-8")
    except subprocess.CalledProcessError as exc:
        if exc.returncode != 0:
            raise
        if exc.returncode == -signal.SIGSEGV:
            pytest.skip(
                "Skipping all ICC tests as cd-iccdump killed with signal",
                allow_module_level=True,