[PATCH 7/9] rcutorture/kvm-build.sh: Skip build directory check

From: SeongJae Park
Date: Fri Nov 03 2017 - 06:18:57 EST


Check of existence and write permisison for build directory exists in
'kvm-test-1-run.sh' an 'kvm-build.sh'. Because the 'kvm-build.sh' is
dependent to 'kvm-test-1-run.sh' ('kvm-build.sh' uses variables that
defined from its caller.), it is an unnecessary duplicate. This commit
removes, thus, the duplicated check in 'kvm-build.sh' script.

Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx>
---
tools/testing/selftests/rcutorture/bin/kvm-build.sh | 5 -----
1 file changed, 5 deletions(-)

diff --git a/tools/testing/selftests/rcutorture/bin/kvm-build.sh b/tools/testing/selftests/rcutorture/bin/kvm-build.sh
index 46752c164676..df1c9bb40337 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-build.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-build.sh
@@ -29,11 +29,6 @@ then
exit 1
fi
builddir=${2}
-if test -z "$builddir" -o ! -d "$builddir" -o ! -w "$builddir"
-then
- echo "kvm-build.sh :$builddir: Not a writable directory, cannot build into it"
- exit 1
-fi

T=/tmp/test-linux.sh.$$
trap 'rm -rf $T' 0
--
2.13.0