On Wed, Nov 22, 2023 at 07:22:25PM +0100, Thomas Haller wrote: > diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh > index 3cde97b7ea17..c26142b7ff17 100755 > --- a/tests/shell/run-tests.sh > +++ b/tests/shell/run-tests.sh > @@ -431,6 +431,19 @@ for t in "${TESTSOLD[@]}" ; do > elif [ -d "$t" ] ; then > TESTS+=( $(find_tests "$t") ) > else > + if [ -f "$t" ] ; then > + # If the test name looks like a dumps file, autodetect > + # the correct test name. It's not useful to bother the > + # user with a failure in this case. > + rx="^(.*/)?dumps/([^/]+)\\.(nodump|nft|json-nft)$" > + if [[ "$t" =~ $rx ]] ; then > + t2="${BASH_REMATCH[1]}${BASH_REMATCH[2]}" > + if [ -f "$t2" -a -x "$t2" ] ; then > + TESTS+=( "$t2" ) > + continue > + fi > + fi > + fi I think it is not worth, users of this infrastructure is very small. So let's keep back this usability feature for tests/shell.