Zhou Zheng Sheng has posted comments on this change. Change subject: Add callback to the plethora of retry halting possibilities ......................................................................
Patch Set 2: (1 inline comment) .................................................... File tests/miscTests.py Line 675: Line 676: Line 677: class RetryTests(TestCaseBase): Line 678: def testStopCallback(self): Line 679: counter = [0] stopCallback can not assign to the variable counter directly, it can only read it. So a list here is a trick to simulate pointer in C or reference in CPP. Line 680: limit = 4 Line 681: Line 682: def stopCallback(): Line 683: counter[0] += 1 -- To view, visit http://gerrit.ovirt.org/8093 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Idb5a2158f008b41133352dcfb4926ad21dcceea1 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Saggi Mizrahi <[email protected]> Gerrit-Reviewer: Ayal Baron <[email protected]> Gerrit-Reviewer: Eduardo <[email protected]> Gerrit-Reviewer: Saggi Mizrahi <[email protected]> Gerrit-Reviewer: ShaoHe Feng <[email protected]> Gerrit-Reviewer: Zhou Zheng Sheng <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
