diff options
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 4 | ||||
-rw-r--r-- | tools/testing/ktest/sample.conf | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index f81c8b3a39a8..62a134dc421a 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
@@ -104,6 +104,7 @@ my $start_minconfig; | |||
104 | my $start_minconfig_defined; | 104 | my $start_minconfig_defined; |
105 | my $output_minconfig; | 105 | my $output_minconfig; |
106 | my $ignore_config; | 106 | my $ignore_config; |
107 | my $ignore_errors; | ||
107 | my $addconfig; | 108 | my $addconfig; |
108 | my $in_bisect = 0; | 109 | my $in_bisect = 0; |
109 | my $bisect_bad_commit = ""; | 110 | my $bisect_bad_commit = ""; |
@@ -218,6 +219,7 @@ my %option_map = ( | |||
218 | "BISECT_SLEEP_TIME" => \$bisect_sleep_time, | 219 | "BISECT_SLEEP_TIME" => \$bisect_sleep_time, |
219 | "PATCHCHECK_SLEEP_TIME" => \$patchcheck_sleep_time, | 220 | "PATCHCHECK_SLEEP_TIME" => \$patchcheck_sleep_time, |
220 | "IGNORE_WARNINGS" => \$ignore_warnings, | 221 | "IGNORE_WARNINGS" => \$ignore_warnings, |
222 | "IGNORE_ERRORS" => \$ignore_errors, | ||
221 | "BISECT_MANUAL" => \$bisect_manual, | 223 | "BISECT_MANUAL" => \$bisect_manual, |
222 | "BISECT_SKIP" => \$bisect_skip, | 224 | "BISECT_SKIP" => \$bisect_skip, |
223 | "CONFIG_BISECT_GOOD" => \$config_bisect_good, | 225 | "CONFIG_BISECT_GOOD" => \$config_bisect_good, |
@@ -1529,7 +1531,7 @@ sub monitor { | |||
1529 | } | 1531 | } |
1530 | 1532 | ||
1531 | if ($full_line =~ /call trace:/i) { | 1533 | if ($full_line =~ /call trace:/i) { |
1532 | if (!$bug && !$skip_call_trace) { | 1534 | if (!$ignore_errors && !$bug && !$skip_call_trace) { |
1533 | $bug = 1; | 1535 | $bug = 1; |
1534 | $failure_start = time; | 1536 | $failure_start = time; |
1535 | } | 1537 | } |
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf index d7148f7c7c04..e7119024b879 100644 --- a/tools/testing/ktest/sample.conf +++ b/tools/testing/ktest/sample.conf | |||
@@ -741,6 +741,14 @@ | |||
741 | # (default 0) | 741 | # (default 0) |
742 | #IGNORE_UNUSED = 1 | 742 | #IGNORE_UNUSED = 1 |
743 | 743 | ||
744 | # When testing a kernel that happens to have WARNINGs, and call | ||
745 | # traces, ktest.pl will detect these and fail a boot or test run | ||
746 | # due to warnings. By setting this option, ktest will ignore | ||
747 | # call traces, and will not fail a test if the kernel produces | ||
748 | # an oops. Use this option with care. | ||
749 | # (default 0) | ||
750 | #IGNORE_ERRORS = 1 | ||
751 | |||
744 | #### Per test run options #### | 752 | #### Per test run options #### |
745 | # The following options are only allowed in TEST_START sections. | 753 | # The following options are only allowed in TEST_START sections. |
746 | # They are ignored in the DEFAULTS sections. | 754 | # They are ignored in the DEFAULTS sections. |