]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Mark this 'while True' loop with 'finite' comment
authorZack Cerza <zack@cerza.org>
Fri, 7 Mar 2014 05:09:44 +0000 (23:09 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 7 Mar 2014 05:09:44 +0000 (23:09 -0600)
If we're going to embark on a mission to rid ourselves of
infinitely-looping while loops, it seems smart to start marking the ones
we've fixed in order to make grepping for unfixed loops easier.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/misc.py

index 092f5f55b268e1ac915464713aa69bd43243d2f5..79f0f5b9cd30ef8bd1373d5b92c793e11ff2ea10 100644 (file)
@@ -822,7 +822,7 @@ def wait_until_healthy(ctx, remote):
     """
     testdir = get_testdir(ctx)
     with safe_while(sleep=5, increment=0, tries=180) as timeout:
-        while True:
+        while True:  # finite
             timeout()
             r = remote.run(
                 args=[