summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorFilipe Brandenburger2016-08-10 22:36:55 +0200
committerFilipe Brandenburger2016-08-10 22:59:31 +0200
commit7cd6d50aa92a2e9b567675acc88f7206c84a4d5f (patch)
tree455e399a4a4f5789a7e27422236095b8d02ac81b /tests/run.sh
parenttests: Use proper word splitting when executing tests (diff)
downloadkernel-qcow2-util-linux-7cd6d50aa92a2e9b567675acc88f7206c84a4d5f.tar.gz
kernel-qcow2-util-linux-7cd6d50aa92a2e9b567675acc88f7206c84a4d5f.tar.xz
kernel-qcow2-util-linux-7cd6d50aa92a2e9b567675acc88f7206c84a4d5f.zip
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 <filbranden@google.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh2
1 files changed, 1 insertions, 1 deletions
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'"