[OE-core] [PATCH] oeqa/runexported: Added default json file name as first parameter.

Burton, Ross ross.burton at intel.com
Tue Sep 29 11:30:50 UTC 2015


On 24 September 2015 at 10:33, Lucian Musat <george.l.musat at intel.com>
wrote:

>      (options, args) = parser.parse_args()
>      if len(args) != 1:
> -        parser.error("Incorrect number of arguments. The one and only
> argument should be a json file exported by the build system")
> +        args.append("testdata.json") #default file name
>

OptionParser is deprecated so if you do the fairly trivial port to argparse
then you can handle this directly in the option definitions (define an
optional positional argument with a default value).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150929/e16bee44/attachment-0002.html>


More information about the Openembedded-core mailing list