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 <smizrahi(a)redhat.com>
Gerrit-Reviewer: Ayal Baron <abaron(a)redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw(a)redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou(a)linux.vnet.ibm.com>