aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-01-04 21:51:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2012-01-04 21:56:49 -0500
commitbe405f95f0a090d1dfc26a5bb4d781c00f34479c (patch)
treea2db42c7451799b1a1943b3c2aca6aa5d76b4cce /tools/testing
parent96f6a0df19238fceed77ddfc33bb2d6a4e1b9be6 (diff)
ktest: Add INGORE_ERRORS to ignore warnings in boot up
When testing a kernel that has warnings, ktest.pl will fail the test when it sees the warning. If you need to test the the kernel and want to ignore the errors that are produced, the option IGNORE_ERRORS has been added. When IGNORE_ERRORS is set to something other than 0, it will ignore call traces due to WARN_ON(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/ktest/ktest.pl4
-rw-r--r--tools/testing/ktest/sample.conf8
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;
104my $start_minconfig_defined; 104my $start_minconfig_defined;
105my $output_minconfig; 105my $output_minconfig;
106my $ignore_config; 106my $ignore_config;
107my $ignore_errors;
107my $addconfig; 108my $addconfig;
108my $in_bisect = 0; 109my $in_bisect = 0;
109my $bisect_bad_commit = ""; 110my $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.