Skip to contentSkip to conversation

tests/meta_test: Add another test for igt + dmesg warn

PATCH New Maarten Lankhorst 1 participant 1 message Jun 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/meta_test: Add another test for igt + dmesg warn

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 <[email protected]>
Cc: Petri Latvala <[email protected]>
Cc: Martin Peres <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101518

---
 tests/intel-ci/meta.testlist | 1 +
 tests/meta_test.c            | 6 ++++++
 2 files changed, 7 insertions(+)
tests/intel-ci/meta.testlist +1 -0
index 2ec3db58a409..6eedf43fd423 100644
@@ -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
tests/meta_test.c +6 -0
index a67b4c5e113f..7186b408b520 100644
@@ -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);
 
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx