Commit 5bbe81d2 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "", exclude scenarios for...

In "", exclude scenarios for "TESTOVM" because they are outdated.
parent 840290f6
Pipeline #62412 failed with stages
in 1 minute and 52 seconds
......@@ -10,19 +10,28 @@
import fnmatch
import os
import re
import shutil
import subprocess
def find_scenario_files(path="VadereModelTests"):
scenario_search_pattern = "*.scenario"
scenario_files = []
exclude_patterns = ["TESTOVM"]
for root, dirnames, filenames in os.walk(path):
for filename in fnmatch.filter(filenames, scenario_search_pattern):
scenario_path = os.path.join(root, filename)
for exclude_pattern in exclude_patterns:
regex_pattern = re.compile(exclude_pattern)
match =
if match is None:
print("Total scenario files: {}".format(len(scenario_files)))
print("Exclude patterns: {}".format(exclude_patterns))
return scenario_files
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