mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
rcutorture: Make kvm-find-errors.sh abort on bad directory
Currently, kvm-find-errors.sh gives a usage prompt when given a bad directory, but then soldiers on, giving a series of confusing error messages. This commit therefore prints an error message and exits when given a bad directory, hopefully reducing confusion. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
c0b94ffb66
commit
beabc806f5
1 changed files with 2 additions and 0 deletions
|
@ -20,7 +20,9 @@
|
|||
rundir="${1}"
|
||||
if test -z "$rundir" -o ! -d "$rundir"
|
||||
then
|
||||
echo Directory "$rundir" not found.
|
||||
echo Usage: $0 directory
|
||||
exit 1
|
||||
fi
|
||||
editor=${EDITOR-vi}
|
||||
|
||||
|
|
Loading…
Reference in a new issue