]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology-tree: remove whitespace from metadata
authorJosh Durgin <jdurgin@redhat.com>
Sat, 21 Nov 2015 00:49:39 +0000 (16:49 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 9 Dec 2015 21:04:54 +0000 (13:04 -0800)
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/test/test_tree.py
teuthology/tree.py

index 1f6a2d96e52bc98e1194024629fd2cf26bf8ebee..797fed6c78e3880bb59b3a07c02d6011d70bc8e0 100644 (file)
@@ -62,12 +62,12 @@ expected_tree = """├── %
 expected_desc = [
     '',
     '',
-    ' install ceph',
+    'install ceph',
     '',
-    ' single node cluster',
+    'single node cluster',
     '',
-    ' c/c++ librbd api tests with default settings',
-    ' c/c++ librbd api tests with format 1 images',
+    'c/c++ librbd api tests with default settings',
+    'c/c++ librbd api tests with format 1 images',
 ]
 
 
@@ -78,8 +78,8 @@ expected_rbd_features = [
     '',
     '',
     '',
-    ' default',
-    ' none',
+    'default',
+    'none',
 ]
 
 
index 51745185eaf3d2398806cb007656d073e1dc464e..ff593b04147734477bfa5ab0c7b63383a4a78439 100644 (file)
@@ -26,7 +26,7 @@ def extract_info(file_name, filters, _isdir=os.path.isdir, _open=open):
                 if line.startswith(prefix):
                     if result[filt]:
                         result[filt] += '\n'
-                    result[filt] += line[len(prefix):].rstrip('\n')
+                    result[filt] += line[len(prefix):].rstrip('\n').strip()
     return result
 
 def tree_with_info(cur_dir, filters, prefix, rows,