[PATCH i-g-t v2 2/2] tests/kms_atomic_transition: Reducing debug loglevel dynamically
Pranay Samala
pranay.samala at intel.com
Wed Jul 10 08:43:58 UTC 2024
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.
v2:
- Using "" for the defined header file (Bhanu)
- Not using exit handler in this file (Bhanu)
- Not using any magic number (Bhanu)
Signed-off-by: Pranay Samala <pranay.samala at intel.com>
---
tests/kms_atomic_transition.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 29dd8ac4e..ee3a067b7 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -34,6 +34,7 @@
#include "igt_rand.h"
#include "drmtest.h"
#include "sw_sync.h"
+#include "igt_sysfs.h"
#include <errno.h>
#include <pthread.h>
#include <stdbool.h>
@@ -1176,6 +1177,10 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_fixture {
data.drm_fd = drm_open_driver_master(DRIVER_ANY);
+ int current_debug_level = igt_debug_level_init();
+
+ igt_drm_debug_level_decrement(2);
+
kmstest_set_vt_graphics_mode();
igt_display_require(&data.display, data.drm_fd);
--
2.34.1
More information about the igt-dev
mailing list