[Libguestfs] [libnbd PATCH] nbdsh: Start adding unit tests
Eric Blake
eblake at redhat.com
Thu Sep 12 11:38:37 UTC 2019
On 9/11/19 10:10 PM, Eric Blake wrote:
> Ultimately, I'd like to add a unit test covering our recent fix for
> handling globals from consecutive -c, but let's start with a simple
> test that --help output is sane. Sanity includes a mention of the man
> page for more details (similar to nbdkit --help, although I couldn't
> figure out how to make python's argparse output that sentence last).
Found it - pass epilog=... to the ArgumentParser() construction.
> ---
> python/nbdsh.py | 3 ++-
> sh/Makefile.am | 9 ++++++---
> sh/test-help.sh | 32 ++++++++++++++++++++++++++++++++
> 3 files changed, 40 insertions(+), 4 deletions(-)
> create mode 100755 sh/test-help.sh
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190912/fde7d7df/attachment.sig>
More information about the Libguestfs
mailing list