[bitbake-devel] [PATCH 1/4] bitbake-selftest: utilize unittest.main better

Markus Lehtonen markus.lehtonen at linux.intel.com
Fri Aug 19 05:41:17 UTC 2016


On 18/08/16 20:03, "Richard Purdie" <richard.purdie at linuxfoundation.org>
wrote:

>On Thu, 2016-08-18 at 19:55 +0300, Markus Lehtonen wrote:
>> This simplifies the script, and, gives new features. It is now
>> possible
>> to run single test functions, for example. This is nice when writing
>> new
>> test cases.
>> 
>> Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
>> ---
>>  bin/bitbake-selftest | 30 ++++++++----------------------
>>  1 file changed, 8 insertions(+), 22 deletions(-)
>> 
>> diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
>> index 1e6f35e..1e615cc 100755
>> --- a/bin/bitbake-selftest
>> +++ b/bin/bitbake-selftest
>> @@ -25,31 +25,17 @@ try:
>>  except RuntimeError as exc:
>>      sys.exit(str(exc))
>>  
>> -def usage():
>> -    print('usage: [BB_SKIP_NETTESTS=yes] %s [-v] [testname1
>> [testname2]...]' % os.path.basename(sys.argv[0]))
>
>Could we at least preserve the usage message which is helpful as I can
>never remember BB_SKIP_NETTESTS=yes without prompting...

I didn't find an easy way to add that to the usage string. However, patch
#2 ("bitbake-selftest: add help text for env variable(s)") adds a note
about BB_SKIP_NETTESTS that gets printed if you use --help. Would this be
ok?

Thanks,
  Markus





More information about the bitbake-devel mailing list