Skip to content
Snippets Groups Projects
Commit bf2261f6 authored by Michele Chiari's avatar Michele Chiari
Browse files

Disable multithreading.

parent 323abcbe
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
import mc_openapi.doml_mc as mc
doml_document_path = "../../tests/doml/nginx-openstack_v2.domlx"
# doml_document_path = "../../tests/doml/nginx-openstack_v2_wrong.domlx"
# doml_document_path = "../../tests/doml/faas.domlx"
with open(doml_document_path, "rb") as xmif:
doc = xmif.read()
dmc = mc.ModelChecker(doc)
```
%% Cell type:code id: tags:
``` python
r = dmc.check_common_requirements(2)
r = dmc.check_common_requirements(2, False)
r.summarize()
```
......
......@@ -13,7 +13,7 @@ def post(body, requirement=None):
doml_xmi = body
try:
dmc = ModelChecker(doml_xmi)
results = dmc.check_common_requirements(2)
results = dmc.check_common_requirements(threads=1, consistency_checks=False)
res, msg = results.summarize()
if res == MCResult.sat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment