From 4b11d072bfee2a8ac69601e70d37f00da05c1f97 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 6 Mar 2014 23:09:44 -0600 Subject: [PATCH] Mark this 'while True' loop with 'finite' comment 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 --- teuthology/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 092f5f55b2..79f0f5b9cd 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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=[ -- 2.39.5