[core] Sort configuration report
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Tue, 05 Jul 2016 15:18:47 -0700
changeset 12179 cd49c3198528
parent 12178 dd563461ff0b
child 12180 14276c2b7741
[core] Sort configuration report
wscript
--- a/wscript	Mon Jul 04 15:15:48 2016 +0200
+++ b/wscript	Tue Jul 05 15:18:47 2016 -0700
@@ -495,7 +495,7 @@
         else:
             why_not_tests = "defaults to disabled"
 
-    conf.report_optional_feature("ENABLE_TESTS", "Build tests", env['ENABLE_TESTS'], why_not_tests)
+    conf.report_optional_feature("ENABLE_TESTS", "Tests", env['ENABLE_TESTS'], why_not_tests)
 
     # Decide if examples will be built or not.
     if Options.options.enable_examples:
@@ -516,7 +516,7 @@
         else:
             why_not_examples = "defaults to disabled"
 
-    conf.report_optional_feature("ENABLE_EXAMPLES", "Build examples", env['ENABLE_EXAMPLES'], 
+    conf.report_optional_feature("ENABLE_EXAMPLES", "Examples", env['ENABLE_EXAMPLES'], 
                                  why_not_examples)
     try:
         for dir in os.listdir('examples'):
@@ -595,7 +595,7 @@
                              Options.options.out, Logs.colors('NORMAL')))
     
     
-    for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']:
+    for (name, caption, was_enabled, reason_not_enabled) in sorted(conf.env['NS3_OPTIONAL_FEATURES'], key=lambda s : s[1]):
         if was_enabled:
             status = 'enabled'
             color = 'GREEN'