From 97c585170e9ba0d8dc2f3fc24865c7d7b969e509 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 20 Nov 2015 16:49:39 -0800 Subject: [PATCH] teuthology-tree: remove whitespace from metadata Signed-off-by: Josh Durgin --- teuthology/test/test_tree.py | 12 ++++++------ teuthology/tree.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/teuthology/test/test_tree.py b/teuthology/test/test_tree.py index 1f6a2d96e5..797fed6c78 100644 --- a/teuthology/test/test_tree.py +++ b/teuthology/test/test_tree.py @@ -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', ] diff --git a/teuthology/tree.py b/teuthology/tree.py index 51745185ea..ff593b0414 100644 --- a/teuthology/tree.py +++ b/teuthology/tree.py @@ -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, -- 2.39.5