Re: [kvm-unit-tests PATCH v1 2/2] run_tests: fix command line options handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/02/19 10:48, Stefan Raspl wrote:
> When specifying desired tests on the command line, options are ignored
> unless specified prior to any desired tests.
> E.g.
> 
>   $ ./run_tests.sh sthyi -t emulator -j5
>   PASS emulator (102 tests)
>   PASS sthyi (19 tests)
> 
> Note that the output is not in TAP13 format, and the tests are not executed
> in parallel.

Yes, this is intended behavior of getopts.  But, using getopt is good too.

Paolo

> This patch fixes the issue by switching to getopt instead. Might not be the
> optimum solution, but threw in long command line opts as a bonus.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux