avocado: Fix renamed attribute from avocado.core.output

The reference was incorrect, causing some of the plugins
to crash.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 483680bc
......@@ -33,7 +33,7 @@ class DataDirList(plugin.Plugin):
self.configured = True
def list_data_dirs(self, args):
bcolors = output.colors
bcolors = output.term_support
pipe = output.get_paginator()
pipe.write(bcolors.header_str('Avocado Data Directories:'))
pipe.write('\n base dir: ' + data_dir.get_base_dir())
......
......@@ -33,7 +33,7 @@ class PluginsList(plugin.Plugin):
self.configured = True
def list_plugins(self, args):
bcolors = output.colors
bcolors = output.term_support
pipe = output.get_paginator()
pm = get_plugin_manager()
pipe.write(bcolors.header_str('Plugins loaded:'))
......
......@@ -52,7 +52,7 @@ class TestLister(plugin.Plugin):
:param args: Command line args received from the list subparser.
"""
bcolors = output.colors
bcolors = output.term_support
pipe = output.get_paginator()
test_files = os.listdir(data_dir.get_test_dir())
test_dirs = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册