[Intel-gfx] [PATCH i-g-t] tests/meta_test: Add another test for igt + dmesg warn
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Wed Jun 21 09:31:58 UTC 2017
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 at intel.com>
Cc: Petri Latvala <petri.latvala at intel.com>
Cc: Martin Peres <martin.peres at linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101518
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
tests/intel-ci/meta.testlist | 1 +
tests/meta_test.c | 6 ++++++
2 files changed, 7 insertions(+)
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 at meta_test@pass-result
igt at meta_test@warn
+igt at meta_test@igt-warn-and-dmesg-warn
igt at meta_test@fail-result
igt at meta_test@dmesg-pass
igt at 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);
--
2.11.0
More information about the Intel-gfx
mailing list