diff --git a/src/sst/core/testingframework/test_engine_globals.py b/src/sst/core/testingframework/test_engine_globals.py index 38e365df8..f235d77a7 100644 --- a/src/sst/core/testingframework/test_engine_globals.py +++ b/src/sst/core/testingframework/test_engine_globals.py @@ -15,11 +15,13 @@ """ import os -from typing import TYPE_CHECKING +from typing import Dict, List, TYPE_CHECKING if TYPE_CHECKING: import configparser + from test_engine_junit import JUnitTestCase + # Verbose Defines VERBOSE_QUIET = 0 VERBOSE_NORMAL = 1 @@ -27,30 +29,30 @@ VERBOSE_DEBUG = 3 # Global Var Defines -TESTRUN_TESTRUNNINGFLAG = None -TESTRUN_SINGTHREAD_TESTSUITE_NAME = None -TESTRUN_JUNIT_TESTCASE_DICTLISTS = None +TESTRUN_TESTRUNNINGFLAG = False +TESTRUN_SINGTHREAD_TESTSUITE_NAME = "" +TESTRUN_JUNIT_TESTCASE_DICTLISTS: Dict[str, List["JUnitTestCase"]] = dict() -TESTOUTPUT_TOPDIRPATH = None -TESTOUTPUT_RUNDIRPATH = None -TESTOUTPUT_TMPDIRPATH = None -TESTOUTPUT_XMLDIRPATH = None +TESTOUTPUT_TOPDIRPATH = "" +TESTOUTPUT_RUNDIRPATH = "" +TESTOUTPUT_TMPDIRPATH = "" +TESTOUTPUT_XMLDIRPATH = "" -TESTENGINE_CONCURRENTMODE = None -TESTENGINE_THREADLIMIT = None -TESTENGINE_DEBUGMODE = None -TESTENGINE_LOGFAILMODE = None -TESTENGINE_IGNORESKIPS = None -TESTENGINE_VERBOSITY = None -TESTENGINE_SSTRUN_NUMRANKS = None -TESTENGINE_SSTRUN_NUMTHREADS = None -TESTENGINE_SSTRUN_GLOBALARGS = None -TESTENGINE_CORE_CONFFILE_PARSER = None -TESTENGINE_CORE_CONFINCLUDE_DICT = None -TESTENGINE_ELEM_CONFINCLUDE_DICT = None +TESTENGINE_CONCURRENTMODE = False +TESTENGINE_THREADLIMIT = 8 +TESTENGINE_DEBUGMODE = False +TESTENGINE_LOGFAILMODE = False +TESTENGINE_IGNORESKIPS = False +TESTENGINE_VERBOSITY = 1 +TESTENGINE_SSTRUN_NUMRANKS = 1 +TESTENGINE_SSTRUN_NUMTHREADS = 1 +TESTENGINE_SSTRUN_GLOBALARGS = "" +TESTENGINE_CORE_CONFFILE_PARSER: "configparser.RawConfigParser" = None # type: ignore [assignment] +TESTENGINE_CORE_CONFINCLUDE_DICT: Dict[str, str] = dict() +TESTENGINE_ELEM_CONFINCLUDE_DICT: Dict[str, str] = dict() TESTENGINE_ERRORCOUNT = 0 -TESTENGINE_SCENARIOSLIST = None -TESTENGINE_TESTNOTESLIST = None +TESTENGINE_SCENARIOSLIST: List[str] = [] +TESTENGINE_TESTNOTESLIST: List[str] = [] # These are some globals to pass data between the top level test engine # and the lower level testscripts @@ -98,8 +100,8 @@ def init_test_engine_globals() -> None: TESTENGINE_VERBOSITY = 1 TESTENGINE_SSTRUN_NUMRANKS = 1 TESTENGINE_SSTRUN_NUMTHREADS = 1 - TESTENGINE_SSTRUN_GLOBALARGS = ["xxx"] - TESTENGINE_CORE_CONFFILE_PARSER = None + TESTENGINE_SSTRUN_GLOBALARGS = "xxx" + TESTENGINE_CORE_CONFFILE_PARSER = None # type: ignore [assignment] TESTENGINE_CORE_CONFINCLUDE_DICT = {} TESTENGINE_ELEM_CONFINCLUDE_DICT = {} TESTENGINE_ERRORCOUNT = 0