Workspace task asserts

This commit is contained in:
MaXFeeD
2025-04-03 17:32:06 +03:00
parent 39b0857de4
commit 49f4f6032c
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
import sys
from typing import Optional
def show_help():
print("Usage: icmtoolchain [options] ... <task1> [arguments1] ...")
print(" " * 2 + "--help: Display this message.")
+2
View File
@@ -432,6 +432,7 @@ class WorkspaceBuildConfiguration:
from xml.dom import minidom
component = WorkspaceBuildConfiguration.get_idea_task(name, "ShConfigurationType")
configuration: minidom.Node = component.childNodes[0]
assert component.ownerDocument is not None
document: minidom.Document = component.ownerDocument
relative_path = GLOBALS.PREFERRED_CONFIG.get_relative_path(path)
relative_path = "$PROJECT_DIR$/" + relative_path.replace("\\", "/")
@@ -477,6 +478,7 @@ class WorkspaceBuildConfiguration:
def get_idea_compound_task(name: str, order: Collection[str]):
from xml.dom import minidom
component = WorkspaceBuildConfiguration.get_idea_task(name, "CompoundRunConfigurationType")
assert component.ownerDocument is not None
document: minidom.Document = component.ownerDocument
configuration: minidom.Node = component.childNodes[0]