test-keep-alive
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 16 Jun 2022 10:00:08 +0000 (11:00 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Thu, 16 Jun 2022 10:00:08 +0000 (11:00 +0100)
===================================================================

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

llvm/utils/lit/lit/ProgressBar.py

index fd721db780b5c2388154b93ab9cca55e1d57f02b..fe84bbfbdad44a2a0a59bfea52dc21964ad667b8 100644 (file)
@@ -189,15 +189,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