From 9043f1fc53cac87dad8b14bea5a807a1686bb6ce Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Thu, 22 Dec 2011 22:06:59 -0500 Subject: [PATCH] --- yaml --- r: 285900 b: refs/heads/master c: c2857cb4a855aba0c3f826bcd0dfef72abb0995b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/testing/ktest/compare-ktest-sample.pl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c315aa568b1c..0f0f88da7af4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9cc9e091ed4c70535309dd9336a5ea5c2c5920aa +refs/heads/master: c2857cb4a855aba0c3f826bcd0dfef72abb0995b diff --git a/trunk/tools/testing/ktest/compare-ktest-sample.pl b/trunk/tools/testing/ktest/compare-ktest-sample.pl index 9a571e71683c..a373a5bfff68 100755 --- a/trunk/tools/testing/ktest/compare-ktest-sample.pl +++ b/trunk/tools/testing/ktest/compare-ktest-sample.pl @@ -2,7 +2,9 @@ open (IN,"ktest.pl"); while () { + # hashes are now used if (/\$opt\{"?([A-Z].*?)(\[.*\])?"?\}/ || + /^\s*"?([A-Z].*?)"?\s*=>\s*/ || /set_test_option\("(.*?)"/) { $opt{$1} = 1; } @@ -11,7 +13,7 @@ open (IN, "sample.conf"); while () { - if (/^\s*#?\s*(\S+)\s*=/) { + if (/^\s*#?\s*([A-Z]\S*)\s*=/) { $samp{$1} = 1; } }