summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-04-15 09:49:19 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-04-15 13:35:42 +0200
commit53c2c4562555cbc00b2b78cb4394ee3f2b7f0729 (patch)
treeed9f839bedfafab9a4362557f0f080b3dbcac730
parente478471dd54835b88d68d6d5b372e00b311807a9 (diff)
downloadlvm2-53c2c4562555cbc00b2b78cb4394ee3f2b7f0729.tar.gz
tests: align test result in batch mode
-rw-r--r--test/lib/brick-shelltest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h
index 362ee8a2d..54114db55 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;