diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 13:13:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 13:13:47 -0400 |
| commit | 6977b4c7736e8809b7959c66875a16c0bbcf2152 (patch) | |
| tree | 4063167be935320f13c56f4495af1d05312cfff8 /tools/testing | |
| parent | 69e9576bf283b0ee3423642d7e7dbe4b3a16e455 (diff) | |
| parent | 95f57838418358e93212e9dddd60d3502c7f8e2e (diff) | |
Merge tag 'ktest-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest
Pull ktest fix from Steven Rostedt:
"ktest has one fix needed for this merge window - fix parsing of ELSE
IF in reading config file"
* tag 'ktest-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest: Fix ELSE IF statements
Diffstat (limited to 'tools/testing')
| -rwxr-xr-x | tools/testing/ktest/ktest.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 52b7959cd513..c05bcd293d8c 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
| @@ -840,7 +840,9 @@ sub __read_config { | |||
| 840 | 840 | ||
| 841 | if ($rest =~ /\sIF\s+(.*)/) { | 841 | if ($rest =~ /\sIF\s+(.*)/) { |
| 842 | # May be a ELSE IF section. | 842 | # May be a ELSE IF section. |
| 843 | if (!process_if($name, $1)) { | 843 | if (process_if($name, $1)) { |
| 844 | $if_set = 1; | ||
| 845 | } else { | ||
| 844 | $skip = 1; | 846 | $skip = 1; |
| 845 | } | 847 | } |
| 846 | $rest = ""; | 848 | $rest = ""; |
