test-keep-alive
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 30 Nov 2021 18:32:51 +0000 (18:32 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 30 Nov 2021 18:32:51 +0000 (18:32 +0000)
===================================================================

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