Allon Mureinik has posted comments on this change.
Change subject: utils: Moved RollbackContext from misc to utils ......................................................................
Patch Set 3:
(2 comments)
Basically +1, please handle Nir's comments.
.................................................... Commit Message Line 7: utils: Moved RollbackContext from misc to utils Line 8: Line 9: The RollbackContext class was located in storage/misc, and is used by Line 10: several non-storage tests. It was therefore moved to utils, where it Line 11: belongs. Accordingly, ContextManagerTests class was moved to utilsTests +1. Line 12: from miscTests. Line 13: Line 14: Change-Id: I985103650a5706d35d9cd519618d09c692feb0be
.................................................... File lib/vdsm/utils.py Line 1091: def undoStep2(arg): pass Line 1092: step2() Line 1093: rollback.prependDefer(undoStep2, arg) Line 1094: Line 1095: More examples see tests/miscTests.py +1. Line 1096: ''' Line 1097: def __init__(self, *args): Line 1098: self._finally = [] Line 1099: