summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-selftest
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-20 16:08:58 +0100
commit81697a8661a5d620960306fe12825cd13a1ba4c6 (patch)
treee92335f43fd7229e228dffd6765dc70524e31a48 /bitbake/bin/bitbake-selftest
parent9139d75736a5c1576db8fc88a57a629cfe9bc6dc (diff)
downloadpoky-81697a8661a5d620960306fe12825cd13a1ba4c6.tar.gz
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>
Diffstat (limited to 'bitbake/bin/bitbake-selftest')
-rwxr-xr-xbitbake/bin/bitbake-selftest14
1 files changed, 13 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest
index 1e615ccf7d..25905d7c10 100755
--- a/bitbake/bin/bitbake-selftest
+++ b/bitbake/bin/bitbake-selftest
@@ -37,5 +37,17 @@ for t in tests:
37 __import__(t) 37 __import__(t)
38 38
39 39
40ENV_HELP = """\
41Environment variables:
42 BB_SKIP_NETTESTS set to 'yes' in order to skip tests using network
43 connection
44"""
45
46class main(unittest.main):
47 def _print_help(self, *args, **kwargs):
48 super(main, self)._print_help(*args, **kwargs)
49 print(ENV_HELP)
50
51
40if __name__ == '__main__': 52if __name__ == '__main__':
41 unittest.main(defaultTest=tests) 53 main(defaultTest=tests)