[for-next][PATCH 1/7] ktest: Minor cleanup with uninitialized variable $build_options

From: Steven Rostedt
Date: Mon May 03 2021 - 19:07:00 EST


From: "John 'Warthog9' Hawley (VMware)" <warthog9@xxxxxxxxxxxxxx>

Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@xxxxxxxxxxxxxx>
Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
---
tools/testing/ktest/ktest.pl | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 4e2450964517..18fd4fd117dd 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -2594,6 +2594,9 @@ sub build {
# Run old config regardless, to enforce min configurations
make_oldconfig;

+ if (not defined($build_options)){
+ $build_options = "";
+ }
my $build_ret = run_command "$make $build_options", $buildlog;

if (defined($post_build)) {
--
2.30.1