diff mbox

[i-g-t] tests/meta_test: Add another test for igt + dmesg warn

Message ID 20170621093158.11432-1-maarten.lankhorst@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maarten Lankhorst June 21, 2017, 9:31 a.m. UTC
When looking at 101518 I've noticed that piglit's html summary correctly
identifies warnings that are from stderr and dmesg. However CI doesn't
handle this correctly yet and doesn't get the dmesg errors.

Cc: Marta Löfstedt <marta.lofstedt@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101518
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 tests/intel-ci/meta.testlist | 1 +
 tests/meta_test.c            | 6 ++++++
 2 files changed, 7 insertions(+)
diff mbox

Patch

diff --git a/tests/intel-ci/meta.testlist b/tests/intel-ci/meta.testlist
index 2ec3db58a409..6eedf43fd423 100644
--- a/tests/intel-ci/meta.testlist
+++ b/tests/intel-ci/meta.testlist
@@ -1,5 +1,6 @@ 
 igt@meta_test@pass-result
 igt@meta_test@warn
+igt@meta_test@igt-warn-and-dmesg-warn
 igt@meta_test@fail-result
 igt@meta_test@dmesg-pass
 igt@meta_test@dmesg-warn
diff --git a/tests/meta_test.c b/tests/meta_test.c
index a67b4c5e113f..7186b408b520 100644
--- a/tests/meta_test.c
+++ b/tests/meta_test.c
@@ -134,6 +134,12 @@  igt_main
 		test_result(true);
 	}
 
+	igt_subtest("igt-warn-and-dmesg-warn") {
+		igt_warn("This is a test with a igt warning that should show a dmesg warning too.\n");
+
+		test_dmesg(false);
+	}
+
 	igt_subtest("fail-result")
 		test_result(false);