Skip to content

Commit

Permalink
Add directory with cil file to MEA sources
Browse files Browse the repository at this point in the history
  • Loading branch information
vmordan committed Oct 6, 2023
1 parent d4eae4a commit ea6173b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/klever_bridge/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __process_single_klever_result(self, result: VerificationResults, output_dir
for file in glob.glob(os.path.join(output_dir, "*files")):
if file.endswith(".log"):
files.append(file)
if COMPONENT_MEA not in self.config:
self.config[COMPONENT_MEA] = {}
self.config[COMPONENT_MEA][TAG_SOURCE_DIR] = os.path.join(output_dir, os.path.pardir)
launch_directory = self._copy_result_files(files, self.process_dir)

result.work_dir = launch_directory
Expand Down Expand Up @@ -98,10 +101,6 @@ def __parse_tasks_dir(self, processed_tasks: dict, job_id: str):
job_config[TAG_CONFIG_OPTIONS] = options

for run in root.findall('./run'):
# Actually we expect only one run here
# file_name = os.path.realpath(os.path.normpath(os.path.abspath(os.path.join(
# output_dir, os.path.pardir, CIL_FILE
# ))))
result = VerificationResults(None, self.config)
result.entrypoint = module
result.rule = prop
Expand Down

0 comments on commit ea6173b

Please sign in to comment.