Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57]) by gabe.freedesktop.org (Postfix) with ESMTPS id A49F310E11A for ; Mon, 25 Apr 2022 18:46:14 +0000 (UTC) From: David Zhang To: Date: Mon, 25 Apr 2022 14:45:54 -0400 Message-ID: <20220425184556.771707-3-dingchen.zhang@amd.com> In-Reply-To: <20220425184556.771707-1-dingchen.zhang@amd.com> References: <20220425184556.771707-1-dingchen.zhang@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH v4 2/4] tests/amdgpu/amd_psr: set visual-confirm default to disabled List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: [why & how] For CI machine, by default it would directly run test case w/o any manual confirmation. And visual confirm option is to validate the PSR-SU feature as manual approach, which is for debugging purpose and not for CI automated scheme. Pre-set the "visual_confirm" to disable and only to enable the visual confirm by manual. changes in v2: ---------------------- - pre-set visual confirm option from enabled to disabled, and set it as required argument. Cc: Rodrigo Siqueira Cc: Harry Wentland Cc: Leo Li Cc: Jay Pillai Cc: Wayne Lin Signed-off-by: David Zhang Reviewed-by: Aurabindo Pillai --- tests/amdgpu/amd_psr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/amdgpu/amd_psr.c b/tests/amdgpu/amd_psr.c index e3a2cb4a..8f47e816 100644 --- a/tests/amdgpu/amd_psr.c +++ b/tests/amdgpu/amd_psr.c @@ -66,7 +66,7 @@ typedef struct data { struct { bool visual_confirm; } opt = { - .visual_confirm = true, /* visual confirm debug option */ + .visual_confirm = false, /* visual confirm debug option */ }; static void draw_color_alpha(igt_fb_t *fb, int x, int y, int w, int h, @@ -491,7 +491,7 @@ const char *help_str = " --visual-confirm PSR visual confirm debug option enable\n"; struct option long_options[] = { - {"visual-confirm", optional_argument, NULL, 'v'}, + {"visual-confirm", required_argument, NULL, 'v'}, { 0, 0, 0, 0 } }; -- 2.25.1