From 7cd6d50aa92a2e9b567675acc88f7206c84a4d5f Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Wed, 10 Aug 2016 13:36:55 -0700 Subject: 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 --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index d72fdfcc1..5e8d286c3 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'" -- cgit v1.2.3-55-g7522