Also, fix @rtype and @return elements of utils.TestDelay(), which now
returns a tuple but this wasn't being indicated.
Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
This is used just for debugging and testing.
Parameters:
- - duration: the time to sleep
+ - duration: the time to sleep, in seconds
- on_master: if true, sleep on the master
- on_nodes: list of nodes in which to sleep
"""Sleep for a fixed amount of time.
@type duration: float
- @param duration: the sleep duration
- @rtype: boolean
- @return: False for negative value, True otherwise
+ @param duration: the sleep duration, in seconds
+ @rtype: (boolean, str)
+ @return: False for negative value, and an accompanying error message;
+ True otherwise (and msg is None)
"""
if duration < 0: