Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D3D510E148 for ; Tue, 15 Nov 2022 18:30:10 +0000 (UTC) From: Nidhi Gupta To: igt-dev@lists.freedesktop.org Date: Wed, 16 Nov 2022 00:04:34 +0530 Message-Id: <1668537274-6057-4-git-send-email-nidhi1.gupta@intel.com> In-Reply-To: <1668537274-6057-1-git-send-email-nidhi1.gupta@intel.com> References: <1668537274-6057-1-git-send-email-nidhi1.gupta@intel.com> Subject: [igt-dev] [PATCH v4 3/3] tests/i915/i915_pm_backlight: Create dynamic subtests 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: Modified the test to include dynamic subtests. Signed-off-by: Nidhi Gupta --- tests/i915/i915_pm_backlight.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/i915/i915_pm_backlight.c b/tests/i915/i915_pm_backlight.c index dcec2b6..3301390 100644 --- a/tests/i915/i915_pm_backlight.c +++ b/tests/i915/i915_pm_backlight.c @@ -307,7 +307,7 @@ igt_main for (i = 0; i < ARRAY_SIZE(tests); i++) { igt_describe(tests[i].desc); - igt_subtest(tests[i].name) { + igt_subtest_with_dynamic(tests[i].name) { for (int j = 0; j < (dual_edp ? 2 : 1); j++) { test_setup(display, &contexts->output[j]); @@ -317,9 +317,13 @@ igt_main if (tests[i].flags == TEST_SUSPEND) check_suspend(contexts[j].output); - tests[i].test_t(&contexts[j]); + igt_dynamic_f("%s", igt_output_name(contexts[j].output)) { + tests[i].test_t(&contexts[j]); + } + + test_cleanup(&display, output); } - test_cleanup(&display, output); + /* TODO: Add tests for dual eDP. */ } } -- 1.9.1