From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5031F10E1D3 for ; Thu, 2 Feb 2023 05:09:29 +0000 (UTC) From: Nidhi Gupta To: igt-dev@lists.freedesktop.org Date: Thu, 2 Feb 2023 10:45:04 +0530 Message-Id: <20230202051509.28983-3-nidhi1.gupta@intel.com> In-Reply-To: <20230202051509.28983-1-nidhi1.gupta@intel.com> References: <20230202051509.28983-1-nidhi1.gupta@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH v4 2/7] tests/kms_async_flips: Limit the execution to single pipe List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nidhi Gupta Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Bhanuprakash Modem As the execution is taking more time, limit the execution to single pipe. Signed-off-by: Bhanuprakash Modem Signed-off-by: Nidhi Gupta --- tests/kms_async_flips.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c index 7cb71f6b..d516e3e2 100644 --- a/tests/kms_async_flips.c +++ b/tests/kms_async_flips.c @@ -543,17 +543,15 @@ static void run_test(data_t *data, void (*test)(data_t *)) igt_output_t *output; enum pipe pipe; - for_each_pipe(&data->display, pipe) { - for_each_valid_output_on_pipe(&data->display, pipe, output) { - igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name) { - data->output = output; - data->pipe = pipe; - test(data); - } - - if (!data->extended) - break; + for_each_pipe_with_valid_output(&data->display, pipe, output) { + igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), output->name) { + data->output = output; + data->pipe = pipe; + test(data); } + + if (!data->extended) + break; } } -- 2.39.0