diff options
author | Filipe Brandenburger | 2016-08-10 22:36:55 +0200 |
---|---|---|
committer | Filipe Brandenburger | 2016-08-10 22:59:31 +0200 |
commit | 7cd6d50aa92a2e9b567675acc88f7206c84a4d5f (patch) | |
tree | 455e399a4a4f5789a7e27422236095b8d02ac81b | |
parent | tests: Use proper word splitting when executing tests (diff) | |
download | kernel-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>
-rwxr-xr-x | tests/run.sh | 2 |
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'" |