summaryrefslogtreecommitdiffstats
path: root/bin
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 /bin
parent8c513580b9406b031674f799117eae7410f8e01c (diff)
downloadbitbake-contrib-94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05.tar.gz
bitbake-contrib-94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05.tar.bz2
bitbake-contrib-94c63a5b1e731e64eb8efbc09f2ab6a0ce11df05.zip
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>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-selftest14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
index 1e615ccf7d..25905d7c10 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)