Commit 1ac787e9 authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Rafael Monnerat

slapgrid_tests[manager]: Test manager softwareTearDown when failure

parent 9faa825e
...@@ -3002,3 +3002,19 @@ echo "Kitty cute kitkat" ...@@ -3002,3 +3002,19 @@ echo "Kitty cute kitkat"
self.assertEqual(self.manager.sequence, self.assertEqual(self.manager.sequence,
['software', 'softwareTearDown']) ['software', 'softwareTearDown'])
def test_partition_software_fail(self):
"""Manager.softwareTearDown should not run when software release fail.
"""
with self._mock_requests():
software = self.computer.software_list[0]
buildout = """#!/bin/sh
echo "Kitty cute kitkat"
exit 1
"""
software.setBuildout(buildout)
self.launchSlapgridSoftware()
self.assertEqual(self.manager.sequence,
['software'])
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