[lvm-devel] master - tests: align test result in batch mode
Zdenek Kabelac
zkabelac at fedoraproject.org
Wed Apr 15 11:38:26 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=53c2c4562555cbc00b2b78cb4394ee3f2b7f0729
Commit: 53c2c4562555cbc00b2b78cb4394ee3f2b7f0729
Parent: e478471dd54835b88d68d6d5b372e00b311807a9
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Wed Apr 15 09:49:19 2015 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
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(-)
diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h
index 362ee8a..54114db 100644
--- a/test/lib/brick-shelltest.h
+++ b/test/lib/brick-shelltest.h
@@ -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;
More information about the lvm-devel
mailing list