diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-08-18 19:55:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-20 16:08:58 +0100 |
commit | 81697a8661a5d620960306fe12825cd13a1ba4c6 (patch) | |
tree | e92335f43fd7229e228dffd6765dc70524e31a48 /bitbake | |
parent | 9139d75736a5c1576db8fc88a57a629cfe9bc6dc (diff) | |
download | poky-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')
-rwxr-xr-x | 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 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 | ||
40 | ENV_HELP = """\ | ||
41 | Environment variables: | ||
42 | BB_SKIP_NETTESTS set to 'yes' in order to skip tests using network | ||
43 | connection | ||
44 | """ | ||
45 | |||
46 | class main(unittest.main): | ||
47 | def _print_help(self, *args, **kwargs): | ||
48 | super(main, self)._print_help(*args, **kwargs) | ||
49 | print(ENV_HELP) | ||
50 | |||
51 | |||
40 | if __name__ == '__main__': | 52 | if __name__ == '__main__': |
41 | unittest.main(defaultTest=tests) | 53 | main(defaultTest=tests) |