]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: Allow selection of single tests
authorStefano Brivio <sbrivio@redhat.com>
Fri, 12 Oct 2018 21:54:13 +0000 (23:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:37:28 +0000 (22:37 -0700)
commit9b2000353e4792889f2b5bee501aef19987262df
treec4a5e051a4f84cbcadbfdb5dbeb6c45ae335ce46
parentaceff2cd63e8c6b09cc344fc654fec1d5c99f0bd
selftests: pmtu: Allow selection of single tests

As number of tests is growing, it's quite convenient to allow
single tests to be run.

Display usage when the script is run with any invalid argument,
keep existing semantics when no arguments are passed so that
automated runs won't break.

Instead of just looping on the list of requested tests, if any,
check first that they exist, and go through them in a nested
loop to keep the existing way to display test descriptions.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh