Commit 905af904 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

skip divine tests when divine does not understand compile --help

Fixes #235, reported by Henrich Lauko.

* python/spot/ltsmin.i: Catch CalledProcessError.
* NEWS: Mention the bug.
* THANKS: Add Henrich.
parent 6c218e48
......@@ -6,6 +6,11 @@ New in spot (not yet released)
can be output using --stats=%x (output automaton) or --stats=%X
(input automaton).
Bugs fixed:
- The tests using LTSmin's patched version of divine would fail
if the current (non-patched) version of divine was installed.
New in spot 2.3.1 (2017-02-20)
......@@ -14,6 +14,7 @@ Felix Klaedtke
František Blahoudek
Gerard J. Holzmann
Heikki Tauriainen
Henrich Lauko
Jan Strejček
Jean-Michel Couvreur
Jean-Michel Ilié
// -*- coding: utf-8 -*-
// Copyright (C) 2016 Laboratoire de Recherche et Développement de
// Copyright (C) 2016, 2017 Laboratoire de Recherche et Développement de
// l'Epita (LRDE).
// This file is part of Spot, a model checking library.
......@@ -120,8 +120,13 @@ def require(*tools):
if shutil.which("divine") == None:
print("divine not available", file=sys.stderr)
out = subprocess.check_output(['divine', 'compile', '--help'],
out = subprocess.check_output(['divine', 'compile', '--help'],
except (subprocess.CalledProcessError):
print("divine does not understand 'compile --help'",
if b'LTSmin' not in out:
print("divine available but no support for LTSmin",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment