aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh
diff options
context:
space:
mode:
authorSeongJae Park <sj38.park@gmail.com>2017-11-03 19:17:25 +0900
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-12-11 09:18:25 -0800
commit81394e3f6df8f72895354fe29a1ef60cb0765a78 (patch)
tree63113ab1f7058db28561faf1ce188db1f0ac4d4f /tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh
parentrcutorture/kvm.sh: Support execution from any directory (diff)
downloadlinux-dev-81394e3f6df8f72895354fe29a1ef60cb0765a78.tar.xz
linux-dev-81394e3f6df8f72895354fe29a1ef60cb0765a78.zip
rcutorture/kvm-recheck-*: Improve result directory readability check
The kvm-recheck-(lock|rcu|rcuperf).sh scripts check whether the user-specified results directory exists. If not, it prints out error message that says the specified directory is unreadable. To make the message more precise, this commit adds a readability check. Fixes: 2193e1604eac ("rcutorture: Abstract kvm-recheck.sh") Signed-off-by: SeongJae Park <sj38.park@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to '')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh
index 43f764098e50..2de92f43ee8c 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-lock.sh
@@ -23,7 +23,7 @@
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
i="$1"
-if test -d $i
+if test -d "$i" -a -r "$i"
then
:
else