Workspace task asserts
This commit is contained in:
@@ -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.")
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user