Skip to content

Commit afd7e89

Browse files
committed
Test script: fix setting main file for SPARK project
Do not set the filename in case of no main file.
1 parent fb2079c commit afd7e89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/py_modules/code_projects/extract_projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ def get_main_filename(block):
365365

366366
if block.language == "ada":
367367

368-
block.project_main_file = get_main_filename(block)
368+
if block.run_it:
369+
block.project_main_file = get_main_filename(block)
369370
block.spark_project_filename = write_project_file(block.project_main_file,
370371
block.compiler_switches,
371372
spark_mode=True)

0 commit comments

Comments
 (0)