add colors to optional features report

This commit is contained in:
Alexander Afanasyev
2012-12-05 20:35:21 -08:00
parent d2b1070095
commit 071376c1b7

View File

@@ -536,9 +536,11 @@ def configure(conf):
for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']:
if was_enabled:
status = 'enabled'
color = 'GREEN'
else:
status = 'not enabled (%s)' % reason_not_enabled
print "%-30s: %s" % (caption, status)
color = 'RED'
print "%-30s: %s%s%s" % (caption, Logs.colors_lst[color], status, Logs.colors_lst['NORMAL'])
class SuidBuild_task(Task.TaskBase):