equal
deleted
inserted
replaced
534 # Write a summary of optional features status |
534 # Write a summary of optional features status |
535 print "---- Summary of optional NS-3 features:" |
535 print "---- Summary of optional NS-3 features:" |
536 for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']: |
536 for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']: |
537 if was_enabled: |
537 if was_enabled: |
538 status = 'enabled' |
538 status = 'enabled' |
|
539 color = 'GREEN' |
539 else: |
540 else: |
540 status = 'not enabled (%s)' % reason_not_enabled |
541 status = 'not enabled (%s)' % reason_not_enabled |
541 print "%-30s: %s" % (caption, status) |
542 color = 'RED' |
|
543 print "%-30s: %s%s%s" % (caption, Logs.colors_lst[color], status, Logs.colors_lst['NORMAL']) |
542 |
544 |
543 |
545 |
544 class SuidBuild_task(Task.TaskBase): |
546 class SuidBuild_task(Task.TaskBase): |
545 """task that makes a binary Suid |
547 """task that makes a binary Suid |
546 """ |
548 """ |