Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_atomic_transition: Reducing debug loglevel dynamically
@ 2024-07-04  9:49 Pranay Samala
  2024-07-04 17:54 ` ✗ Fi.CI.BUILD: failure for " Patchwork
  2024-07-04 17:57 ` ✗ GitLab.Pipeline: warning " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Pranay Samala @ 2024-07-04  9:49 UTC (permalink / raw)
  To: igt-dev; +Cc: kunal1.joshi, sameer.lattannavar, pranay.samala

This test is debug logs are too much and was killed
due to exceeding disk usage limit on the less disk
space machines.

So dynamically reducing the debug log level to 13.

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/kms_atomic_transition.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 29dd8ac4e..b0339f57d 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -41,6 +41,7 @@
 #include <string.h>
 #include <time.h>
 #include <poll.h>
+#include <igt_sysfs.h>
 
 /**
  * SUBTEST: plane-primary-toggle-with-vblank-wait
@@ -1176,6 +1177,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 
+		igt_set_debug_value(data.drm_fd, 13);
+
 		kmstest_set_vt_graphics_mode();
 
 		igt_display_require(&data.display, data.drm_fd);
@@ -1258,6 +1261,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 
 	igt_fixture {
 		igt_display_fini(&data.display);
+		igt_debug_reset(data.drm_fd);
 		drm_close_driver(data.drm_fd);
 	}
 }
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-04 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-04  9:49 [PATCH i-g-t] tests/kms_atomic_transition: Reducing debug loglevel dynamically Pranay Samala
2024-07-04 17:54 ` ✗ Fi.CI.BUILD: failure for " Patchwork
2024-07-04 17:57 ` ✗ GitLab.Pipeline: warning " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox