test-keep-alive
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 23 Sep 2024 11:23:31 +0000 (13:23 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Sep 2024 11:23:31 +0000 (13:23 +0200)
===================================================================

Gbp-Pq: Name test-keep-alive.diff

llvm/utils/lit/lit/ProgressBar.py

index 382b8f2e52540cc48797ebe70920cc92df089c2e..f69ec623248cf77a5599cf52542e60a0fc88b6ba 100644 (file)
@@ -203,15 +203,7 @@ class SimpleProgressBar:
             return
 
         for i in range(self.atIndex, next):
-            idx = i % 5
-            if idx == 0:
-                sys.stdout.write("%2d" % (i * 2))
-            elif idx == 1:
-                pass  # Skip second char
-            elif idx < 4:
-                sys.stdout.write(".")
-            else:
-                sys.stdout.write(" ")
+            sys.stdout.write('%-2d ' % (i*2))
         sys.stdout.flush()
         self.atIndex = next