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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Cc: Petri Latvala <petri.latvala@xxxxxxxxx>
Cc: Martin Peres <martin.peres@xxxxxxxxxxxxxxx>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101518
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>
---
 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@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);
 
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux