projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ad1dd
)
ktest: Allow a test case to undefine a default value
author
Steven Rostedt
<srostedt@redhat.com>
Mon, 8 Nov 2010 21:45:50 +0000
(16:45 -0500)
committer
Steven Rostedt
<rostedt@goodmis.org>
Thu, 18 Nov 2010 16:23:10 +0000
(11:23 -0500)
Allow a test case in the config file to undefine a default
value by specifying the option and equal sign but not assigning
it a value:
OPTION =
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl
patch
|
blob
|
blame
|
history
diff --git
a/tools/testing/ktest/ktest.pl
b/tools/testing/ktest/ktest.pl
index 3d88be784df01437bc9f9eb6cdd40df6821f0b83..962c0f773e20112f54d0ad63513db7a29d0d05e2 100755
(executable)
--- a/
tools/testing/ktest/ktest.pl
+++ b/
tools/testing/ktest/ktest.pl
@@
-97,6
+97,11
@@
sub set_value {
die "Error: Option $lvalue defined more than once!\n";
}
$opt{$lvalue} = $rvalue;
+ if ($rvalue =~ /^\s*$/) {
+ delete $opt{$lvalue};
+ } else {
+ $opt{$lvalue} = $rvalue;
+ }
}
sub read_config {