[PATCH i-g-t 1/2] tests/kms_atomic_transition: Use extended flag to reduce the debug log level

Pranay Samala pranay.samala at intel.com
Thu Aug 1 10:01:31 UTC 2024


Using extended flag to reduce the debug log level. In CI it will
reduce the log level. For local execution, extended flag has to
be used for reduction of debug log level.

Signed-off-by: Pranay Samala <pranay.samala at intel.com>
---
 tests/kms_atomic_transition.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 89348f435..72cbd44a2 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -1189,13 +1189,15 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 		for_each_connected_output(&data.display, output)
 			count++;
 
-		dir = igt_sysfs_drm_module_params_open();
-		if (dir >= 0) {
-			current_log_level = igt_drm_debug_level_get(dir);
-			close(dir);
-
-			if (current_log_level > 10)
-				igt_drm_debug_level_update(10);
+		if (!data.extended) {
+			dir = igt_sysfs_drm_module_params_open();
+			if (dir >= 0) {
+				current_log_level = igt_drm_debug_level_get(dir);
+				close(dir);
+
+				if (current_log_level > 10)
+					igt_drm_debug_level_update(10);
+			}
 		}
 	}
 
-- 
2.34.1



More information about the Intel-gfx-trybot mailing list