Check if config contains any engines, fixes #38
authorClifford Wolf <clifford@clifford.at>
Wed, 1 May 2019 16:47:41 +0000 (18:47 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 1 May 2019 16:47:41 +0000 (18:47 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
sbysrc/sby_core.py

index 334f67ac3c4a931d5326533364732365d5b2e7c6..a66ea1409ae74e719f7a4b2118aa657ea3213267 100644 (file)
@@ -589,6 +589,9 @@ class SbyJob:
                     if engine[0] not in ["smtbmc", "btor"]:
                         self.error("Option skip is only valid for smtbmc and btor engines.")
 
+        if len(self.engines) == 0:
+            self.error("Config file is lacking engine configuration.")
+
         if self.reusedir:
             rmtree("%s/model" % self.workdir, ignore_errors=True)
         else: