#!/usr/bin/env python3
-# Copyright (C) 2006-2019 CEA/DEN, EDF R&D
+# Copyright (C) 2006-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
import SALOMERuntime
import loader
import pilot
+import salome
class TestResume(unittest.TestCase):
self.statefile = os.path.join(workdir, 'dumpPartialBloc2.xml')
pass
+ def tearDown(self):
+ salome.salome_init()
+ cm = salome.lcc.getContainerManager()
+ cm.ShutdownContainers()
+ pass
+
def test1_PartialExec(self):
# --- stop execution after breakpoint
time.sleep(1)
pass
if __name__ == '__main__':
- import os
- U = os.getenv('USER')
- with open("/tmp/" + U + "/UnitTestsResult", 'a') as f:
+ dir_test = tempfile.mkdtemp(suffix=".yacstest")
+ file_test = os.path.join(dir_test,"UnitTestsResult")
+ with open(file_test, 'a') as f:
f.write(" --- TEST src/yacsloader: testResume.py\n")
suite = unittest.makeSuite(TestResume)
result=unittest.TextTestRunner(f, descriptions=1, verbosity=1).run(suite)