Fix some python bugs left before

This commit is contained in:
Fu Hanxi 2020-04-29 10:41:39 +08:00 committed by bot
parent 79976e7370
commit 04342a73f2
3 changed files with 2 additions and 3 deletions

View File

@ -112,7 +112,7 @@ def main():
try: try:
build_system_class.build(build_info) build_system_class.build(build_info)
except BuildError as e: except BuildError as e:
logging.error(e.message) logging.error(str(e))
if args.keep_going: if args.keep_going:
failed_builds.append(build_info) failed_builds.append(build_info)
else: else:

View File

@ -53,7 +53,6 @@ from . import (CaseConfig, SearchCases, GitlabCIJob, console_log)
class Group(object): class Group(object):
MAX_EXECUTION_TIME = 30 MAX_EXECUTION_TIME = 30
MAX_CASE = 15 MAX_CASE = 15
SORT_KEYS = ["env_tag"] SORT_KEYS = ["env_tag"]

View File

@ -46,7 +46,7 @@ class Group(CIAssignTest.Group):
for key in self.filters: for key in self.filters:
if self._get_case_attr(case, key) != self.filters[key]: if self._get_case_attr(case, key) != self.filters[key]:
if key == "tags": if key == "tags":
if self._get_case_attr(case, key).issubset(self.filters[key]): if set(self._get_case_attr(case, key)).issubset(set(self.filters[key])):
continue continue
break break
else: else: