[OE-core] [wic patch 2/5] wic: Use argparse instead of optparse

Burton, Ross ross.burton at intel.com
Wed Apr 26 13:03:43 UTC 2017


On 26 April 2017 at 11:34, Andreas Reichel <Andreas.Reichel at tngtech.com>
wrote:

> - Change the code to keep current return values / behavior
> - Adapt the unit test to fit the new code
> - Write a less complex patch for just adding the option
>   "--keep-partition-images" without migration to argparse
>

It looks like the exit 2 is deeply nested into the argparse code, so I
guess the test should be updated.  The test could be made more resilient by
checking that the output wasn't 0 instead of was 1.

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


More information about the Openembedded-core mailing list