Skip to content

Commit

Permalink
remove initializeTestModule_SingleInstance and
Browse files Browse the repository at this point in the history
all calls to that method.
  • Loading branch information
jmlapre committed Aug 5, 2024
1 parent 24b26aa commit d05b4ce
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 25 deletions.
12 changes: 6 additions & 6 deletions src/sst/core/testingframework/sst_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ class SSTTestCase(unittest.TestCase):
module_init = 0
module_sema = threading.Semaphore()

@classmethod
def initializeTestModule_SingleInstance(cls):
with cls.module_sema:
if cls.module_init != 1:
# Put your single instance Init Code Here
cls.module_init = 1
# @classmethod
# def initializeTestModule_SingleInstance(cls):
# with cls.module_sema:
# if cls.module_init != 1:
# # Put your single instance Init Code Here
# cls.module_init = 1

def __init__(self, methodName):
# NOTE: __init__ is called at startup for all tests before any
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_Checkpoint(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Component.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class testcase_Component(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Links.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class testcase_Links(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_MemPoolTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_StatisticComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Module.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_Module(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Output.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_Output(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_ParamComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class testcase_ParamComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_PerfComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class testcase_PerfComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_RNGComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_RNGComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_RealTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def initializeClass(self, testName):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_Serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_Serialization(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_SharedObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_SharedObject(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_StatisticsComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class testcase_StatisticComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_SubComponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_SubComponent(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_UnitAlgebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class testcase_UnitAlgebra(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_config_input_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class testcase_Config_input_output(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_Partitioners(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_default_sstinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class testcase_sstinfo(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down
1 change: 0 additions & 1 deletion tests/testsuite_testengine_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class testcase_testengine_testing_frameworks_operation(SSTTestCase):

def setUp(self):
super(type(self), self).setUp()
type(self).initializeTestModule_SingleInstance()
# Put test based setup code here. it is called once before every test

def tearDown(self):
Expand Down

0 comments on commit d05b4ce

Please sign in to comment.