From: Filipe Brandenburger Date: Wed, 10 Aug 2016 20:36:55 +0000 (-0700) Subject: tests: Allow running a single test case from tests/run.sh X-Git-Tag: v2.29-rc1~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cd6d50aa92a2e9b567675acc88f7206c84a4d5f;p=thirdparty%2Futil-linux.git tests: Allow running a single test case from tests/run.sh Tested by running `tests/run.sh libmount/optstr` successfully. Signed-off-by: Filipe Brandenburger --- diff --git a/tests/run.sh b/tests/run.sh index d72fdfcc12..5e8d286c34 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -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'"