test-keep-alive
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 28 Sep 2021 10:06:50 +0000 (11:06 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 28 Sep 2021 10:06:50 +0000 (11:06 +0100)
===================================================================

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

llvm/utils/lit/lit/ProgressBar.py

index 4f8bd3cc75e3aa99c75a5dd07a161f91f79f95c0..0cf7b0c4ade4c515e49e3c4572147b06cf10f1f1 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