ci: Unify character for separating items

the test names are using `;` and regexps were designed to use `,` but
during development simply joined the expressions by `|`. This should
work but might be confusing so let's go with the semi-colon separator
everywhere.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
This commit is contained in:
Lukáš Doktor 2024-07-18 13:05:51 +02:00
parent fdcfac0641
commit dd2878a9c8
No known key found for this signature in database
GPG Key ID: 26B362E47FCF22C1
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class Checker:
self.latest_commit_sha = os.getenv("COMMIT_HASH")
required_jobs = os.getenv("REQUIRED_JOBS")
if required_jobs:
required_jobs = required_jobs.split(",")
required_jobs = required_jobs.split(";")
else:
required_jobs = []
required_regexps = os.getenv("REQUIRED_REGEXPS")
@ -53,7 +53,7 @@ class Checker:
# TODO: Add way to specify minimum amount of tests
# (eg. via \d+: prefix) and check it in status
if required_regexps:
for regexp in required_regexps.split(","):
for regexp in required_regexps.split(";"):
self.required_regexps.append(re.compile(regexp))
if not required_jobs and not self.required_regexps:
raise RuntimeError("No REQUIRED_JOBS or REQUIRED_REGEXPS defined")

View File

@ -66,7 +66,7 @@ class Checks:
if values.get("regexps"):
required_regexps.add(values["regexps"])
print(';'.join(required_tests))
print('|'.join(required_regexps))
print(';'.join(required_regexps))
return 0
def get_features(self, target_branch):