]> www.infradead.org Git - linux.git/commitdiff
rcutorture/configinit: Fix build directory error message
authorSeongJae Park <sj38.park@gmail.com>
Fri, 3 Nov 2017 10:17:20 +0000 (19:17 +0900)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:18:23 +0000 (09:18 -0800)
The 'configinit.sh' script checks the format of optional argument for the
build directory, printing an error message if the format is not valid.
However, the error message uses the wrong variable, indicating an empty
string even though the user entered a non-empty (but erroneous) string.
This commit fixes the script to use the correct variable.

Fixes: c87b9c601ac8 ("rcutorture: Add KVM-based test framework")
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/configinit.sh

index 51f66a7ce876946391fa4bac164862853b69d51a..c15f270e121d61af0e80b19f8a69d47fe68e88de 100755 (executable)
@@ -51,7 +51,7 @@ then
                        mkdir $builddir
                fi
        else
-               echo Bad build directory: \"$builddir\"
+               echo Bad build directory: \"$buildloc\"
                exit 2
        fi
 fi