Add support of args and kwargs in call_until_true
Now call_until_true doesn't accept args and kwargs,
so if want to call a callable with parameters, we have to
do like this(test_network_v6.py):
srv1_v6_addr_assigned = functools.partial(
guest_has_address, sshv4_1, ips_from_api_1['6'][i])
self.assertTrue(test_utils.call_until_true(srv1_v6_addr_assigned,
CONF.validation.ping_timeout, 1))
So this is to add support of args and kwargs in call_until_true,
and to log the cost time when call_until_true returns True or
False for debugging.
Change-Id: Ib7a392f1a3999c2f2bd3cccaf2fd356cd7879950
diff --git a/releasenotes/notes/add-support-args-kwargs-in-call-until-true-a91k592h5a64exf7.yaml b/releasenotes/notes/add-support-args-kwargs-in-call-until-true-a91k592h5a64exf7.yaml
new file mode 100644
index 0000000..e23abe3
--- /dev/null
+++ b/releasenotes/notes/add-support-args-kwargs-in-call-until-true-a91k592h5a64exf7.yaml
@@ -0,0 +1,5 @@
+---
+features:
+ - Add support of args and kwargs when calling func in call_until_true,
+ also to log the cost time when call_until_true returns True or False
+ for debuggin.