OSDN Git Service

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)
commit55bbc8ff4987d05b7d2f2d513caabd0a58fec021
treec4a5e051a4f84cbcadbfdb5dbeb6c45ae335ce46
parent2527e4037f92d4ac70a843cf602236846b693262
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