Skip to content

Commit

Permalink
Refactoring of new elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vmordan committed Jul 26, 2023
1 parent 3bd5bcf commit 1603402
Show file tree
Hide file tree
Showing 12 changed files with 679 additions and 948 deletions.
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ disable=
too-many-nested-blocks,
import-outside-toplevel,
no-member,
duplicate-code
duplicate-code,
too-few-public-methods,
unnecessary-lambda

1 change: 1 addition & 0 deletions scripts/components/coverage_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def __init__(self, launcher_component: Component = None, basic_config=None, inst
self.mode = self.component_config.get(TAG_COVERAGE_MODE, DEFAULT_COVERAGE_MODE)
self.percent_mode = self.component_config.get(TAG_COVERAGE_PERCENT_MODE,
COVERAGE_PERCENT_LOG)
# TODO: check other modes - do we need this argument?
self.full_mode = self.component_config.get(TAG_FULL_COVERAGE_MODE, "full")
self.internal_logger = logging.getLogger(name=COMPONENT_COVERAGE)
self.internal_logger.setLevel(self.logger.level)
Expand Down
6 changes: 3 additions & 3 deletions scripts/components/mea.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def __print_trace_archive(self, error_trace_file_name: str, witness_type=WITNESS
zfp.write(source_files, arcname=ERROR_TRACE_SOURCES)
zfp.write(converted_traces_files, arcname=CONVERTED_ERROR_TRACES)
if self.result_dir:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bridge.settings")
self.__export_et_parser_lib()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "web.settings")
import django
from django.conf import settings
settings.INSTALLED_APPS = (
Expand All @@ -312,10 +313,9 @@ def __print_trace_archive(self, error_trace_file_name: str, witness_type=WITNESS
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'reports',
'reports', 'jobs'
)
django.setup()
self.__export_et_parser_lib()
# noinspection PyUnresolvedReferences
from reports.etv import convert_json_trace_to_html
with open(json_trace_name, encoding="utf8") as trace_file:
Expand Down
36 changes: 18 additions & 18 deletions scripts/coverage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#
# CV is a framework for continuous verification.
#
# Copyright (c) 2018-2023 ISP RAS (http://www.ispras.ru)
# Ivannikov Institute for System Programming of the Russian Academy of Sciences
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# CV is a framework for continuous verification.
#
# Copyright (c) 2018-2023 ISP RAS (http://www.ispras.ru)
# Ivannikov Institute for System Programming of the Russian Academy of Sciences
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Loading

0 comments on commit 1603402

Please sign in to comment.