Skip to contentSkip to conversation

master - tests: align test result in batch mode

PATCH Zdenek Kabelac 1 participant 1 message Apr 15, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=53c2c4562555cbc00b2b78cb4394ee3f2b7f0729
Commit:        53c2c4562555cbc00b2b78cb4394ee3f2b7f0729
Parent:        e478471dd54835b88d68d6d5b372e00b311807a9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Apr 15 09:49:19 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Apr 15 13:35:42 2015 +0200

tests: align test result in batch mode

---
 test/lib/brick-shelltest.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
test/lib/brick-shelltest.h +2 -1
index 362ee8a..54114db 100644
@@ -921,7 +921,8 @@ struct TestCase {
 
         if ( options.batch ) {
             int spaces = std::max( 64 - int(pretty().length()), 0 );
-            progress( Last ) << " " << std::string( spaces, '.' ) << " " << r;
+            progress( Last ) << " " << std::string( spaces, '.' ) << " "
+                << std::left << std::setw( 9 ) << std::setfill( ' ' ) << r;
             if ( r != Journal::SKIPPED )
                 progress( First ) << "   " << rusage();
             progress( Last ) << std::endl;