Commit 9b8c2bf2 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

runner.test: try to fix SafeDeploy

parent 102d63df
...@@ -434,6 +434,7 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -434,6 +434,7 @@ class SlaprunnerTestCase(unittest.TestCase):
Sofware Instance if it has been deployed yet""" Sofware Instance if it has been deployed yet"""
# Test that SR won't be deployed with auto_deploy=False # Test that SR won't be deployed with auto_deploy=False
self.app.config['auto_deploy'] = False self.app.config['auto_deploy'] = False
self.app.config['autorun'] = False
project = open(os.path.join(self.app.config['etc_dir'], project = open(os.path.join(self.app.config['etc_dir'],
'.project'), "w") '.project'), "w")
project.write(self.software + 'slaprunner-test') project.write(self.software + 'slaprunner-test')
...@@ -447,6 +448,7 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -447,6 +448,7 @@ class SlaprunnerTestCase(unittest.TestCase):
self.assertEqual(response, "2") self.assertEqual(response, "2")
# Test that the new call to isSoftwareReleaseReady # Test that the new call to isSoftwareReleaseReady
# doesn't overwrite the previous installed one # doesn't overwrite the previous installed one
killRunningProcess('slapgrid-sr')
completed_path = os.path.join(self.app.config['runner_workdir'], completed_path = os.path.join(self.app.config['runner_workdir'],
'softwareLink', 'slaprunner-test', '.completed') 'softwareLink', 'slaprunner-test', '.completed')
completed_text = ".completed file: test" completed_text = ".completed file: test"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment