From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47B6789CD5 for ; Tue, 28 Sep 2021 15:24:00 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id y28so93522618lfb.0 for ; Tue, 28 Sep 2021 08:24:00 -0700 (PDT) MIME-Version: 1.0 References: <0e047200-f40a-daa8-80d8-4745da3b9430@amd.com> <0aadb8c4-1329-4241-a65a-1348c7b5b692@amd.com> <20210928144347.iv3dxo4rmu7u42c7@outlook.office365.com> In-Reply-To: From: Mark Yacoub Date: Tue, 28 Sep 2021 11:23:47 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_flip : skip subtest bo-too-big List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Petri Latvala Cc: Rodrigo Siqueira , Aurabindo Pillai , Development mailing list for IGT GPU Tools , Mark Yacoub List-ID: On Tue, Sep 28, 2021 at 11:20 AM Petri Latvala wrote: > > On Tue, Sep 28, 2021 at 10:48:17AM -0400, Mark Yacoub wrote: > > On Tue, Sep 28, 2021 at 10:43 AM Rodrigo Siqueira > > wrote: > > > > > > Hi, > > > > > > I also tested it using vkms and vc4. > > > > > > I already applied the V1 in the upstream. > > > > > > Thanks > > > Siqueira > > > > > > On 09/28, Aurabindo Pillai wrote: > > > > > > > > On 9/28/21 9:53 AM, Petri Latvala wrote: > > > > > On Tue, Sep 28, 2021 at 09:35:10AM -0400, Aurabindo Pillai wrote: > > > > > > On 9/28/21 5:15 AM, Petri Latvala wrote: > > > > > > > On Mon, Sep 27, 2021 at 07:10:45PM +0000, Pillai, Aurabindo wrote: > > > > > > > > Skipping using the continue statement has the side effect of this > > > > > > > > subtest being absent from the list of subtests, when running the > > > > > > > > test executable with paramter --list-subtest. Is that okay ? > > > > > > > It's not okay btw. When you're not in an igt_fixture or an > > > > > > > igt_subtest, you cannot use anything that touches the hardware or the > > > > > > > running system in any way. > > Hi Petri, can you elaborate more on this. I'm curious to understand > > what you mean. I'm slightly confused. > > All subtests must be enumerable regardless of hardware, basically. > > In other words, you cannot do > > igt_fixture { > variable_assigned_in_fixture = value; > } > > if (variable_assigned_in_fixture) > igt_subtest("only-exists-sometimes") {} > Gotcha. thanks! so can i still do igt_subtest("my-subtest") { if (variable_assigned_in_fixture) run_subtest(); } > > -- > Petri Latvala