Test script: fix setting main file for SPARK project

Do not set the filename in case of no main file.
This commit is contained in:
gusthoff
2025-06-08 12:39:08 +02:00
parent fb2079c594
commit afd7e8916f

View File

@@ -365,7 +365,8 @@ def analyze_file(rst_file, extracted_projects_list_file=None):
if block.language == "ada":
block.project_main_file = get_main_filename(block)
if block.run_it:
block.project_main_file = get_main_filename(block)
block.spark_project_filename = write_project_file(block.project_main_file,
block.compiler_switches,
spark_mode=True)