aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-18 19:55:52 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-19 16:44:47 +0100
commit94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05 (patch)
tree38aa79f18795dbc3ef9d06f94ae70a394a3bec44
parent8c513580b9406b031674f799117eae7410f8e01c (diff)
downloadbitbake-94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05.tar.gz
bitbake-selftest: add help text for env variable(s)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbin/bitbake-selftest14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
index 1e615ccf7..25905d7c1 100755
--- a/bin/bitbake-selftest
+++ b/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)