]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: Allow running a single test case from tests/run.sh
authorFilipe Brandenburger <filbranden@google.com>
Wed, 10 Aug 2016 20:36:55 +0000 (13:36 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Wed, 10 Aug 2016 20:59:31 +0000 (13:59 -0700)
Tested by running `tests/run.sh libmount/optstr` successfully.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
tests/run.sh

index d72fdfcc12cf9ed143d6513b5cede1774648c6e1..5e8d286c34c2c904f2eb191335e1a6b2c4e7a986 100755 (executable)
@@ -117,7 +117,7 @@ declare -a comps
 if [ -n "$SUBTESTS" ]; then
        # selected tests only
        for s in $SUBTESTS; do
-               if [ -d "$top_srcdir/tests/ts/$s" ]; then
+               if [ -e "$top_srcdir/tests/ts/$s" ]; then
                        comps+=( $(find_test_scripts "$top_srcdir/tests/ts/$s") ) || exit 1
                else
                        echo "Unknown test component '$s'"