[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2001/8267] bitbake: bitbake-selftest: add help text for env variable(s)



commit 81697a8661a5d620960306fe12825cd13a1ba4c6
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date:   Thu Aug 18 19:55:52 2016 +0300

    bitbake: bitbake-selftest: add help text for env variable(s)
    
    (Bitbake rev: 94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05)
    
    Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/bin/bitbake-selftest |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest
index 1e615cc..25905d7 100755
--- a/bitbake/bin/bitbake-selftest
+++ b/bitbake/bin/bitbake-selftest
@@ -37,5 +37,17 @@ for t in tests:
     __import__(t)
 
 
+ENV_HELP = """\
+Environment variables:
+  BB_SKIP_NETTESTS      set to 'yes' in order to skip tests using network
+                        connection
+"""
+
+class main(unittest.main):
+    def _print_help(self, *args, **kwargs):
+        super(main, self)._print_help(*args, **kwargs)
+        print(ENV_HELP)
+
+
 if __name__ == '__main__':
-        unittest.main(defaultTest=tests)
+        main(defaultTest=tests)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]