avocado.cli.app: Color tests available header

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 2022b970
......@@ -13,9 +13,10 @@ from avocado.core import output
def list_tests(args):
bcolors = output.Bcolors()
pipe = output.get_paginator()
test_dirs = os.listdir(data_dir.get_test_dir())
pipe.write("Tests available:\n")
pipe.write(bcolors.HEADER + "Tests available:" + bcolors.ENDC + "\n")
for test_dir in test_dirs:
pipe.write(" %s\n" % test_dir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册