Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2812601imw; Wed, 6 Jul 2022 12:11:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5JYRcIKtDPcIAJ7a6uNE3Q1FnHfx14RURuBc0hGfReuDxu/liVq+tjA/U9Udl98R4NIcX X-Received: by 2002:a63:5818:0:b0:412:3c6a:8d0 with SMTP id m24-20020a635818000000b004123c6a08d0mr16317911pgb.155.1657134680417; Wed, 06 Jul 2022 12:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657134680; cv=none; d=google.com; s=arc-20160816; b=nI0IF4FF8CwHYZ/5+E1I7TsFEhRI5m7y0wZcXsN+U2TGOm1EfbVu32901AbaUMWY4d a5OPBz2V8Onf9nc91SbV/mskNX4P7l2p1ebq7t7T1VdUWoHQ6lhZjzBMF5BFWPbeLgek A1dQyLNPWP2xn2Uv7b/5fTPZHA54jJ1nDz8/48IUXvG5Me2mvDxJ997BIGqR9wViMYId ru+xrsEvcNFV5cL/xNy/hcPex6UIAUR4CqqoJqvCSkpwO/LL+XfIAwvpBVSBuOvu/0vY 8KPUV15JFzjpuTED/6OwLVav4rsuvH/dvJoOfuIOZzm6O0s8dRLmAbxa76eWuxyMGMsG 5kXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vpKqPCC+dq82KAEepp5QL1jPT12BGJMMiKq0ETkXQgI=; b=NnW0Eo3T1w0T30UhkUtKm7Kmv3/Yx1j+ELh9OQY4SyBMFF8HZsP/cuzr4UeJmDVvEY ZblhbW2aaDzbAbic6CviT8N5FRLVIIcnRM52zItr4X5EwCpEiiA3Dlf4ZIfniO6yiSSg wdDzUJmexVwAWccYCn8yMxC7olM1ORU3HKhHZFoGEFOos5zH966Ek+3LoDuqEnzsvEph j06bwLzmp5JI6a8KngPWtP6J3SYqQqmL58tkVJ7lIqDqooOpwufNjCbj29CAg8pTjKdd QoKjb4XBVY2dAvmgsNnmMB6x9l9nNkGWh4WGfzX6Z6PMkAkHxo8zkGDk66QiRhmks+bb pPIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ivb4/9gf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a170902700600b0016a607f8df7si22590349plk.110.2022.07.06.12.11.05; Wed, 06 Jul 2022 12:11:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ivb4/9gf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbiGFSxh (ORCPT + 99 others); Wed, 6 Jul 2022 14:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbiGFSxf (ORCPT ); Wed, 6 Jul 2022 14:53:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C4C02612D for ; Wed, 6 Jul 2022 11:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657133611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vpKqPCC+dq82KAEepp5QL1jPT12BGJMMiKq0ETkXQgI=; b=ivb4/9gfTcW/ufl+w3CCLqpb1aweipn6RPAvhcy82X0get7z+OL+/ieNE+Bp8TB+SIyYoY tVQ/uEC4vCMCOXnhuXrzAZkuJgDre5fkpRC1rMjtE1ixUvTigU1Iz8csGpg3wB0P54bsyI xIN/sdQHomnzA87SEbOrzOjRhC71Boo= Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-539-GG54jug4OwqAR1iyPjRdRQ-1; Wed, 06 Jul 2022 14:53:30 -0400 X-MC-Unique: GG54jug4OwqAR1iyPjRdRQ-1 Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-31c8c7138ebso67979957b3.17 for ; Wed, 06 Jul 2022 11:53:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vpKqPCC+dq82KAEepp5QL1jPT12BGJMMiKq0ETkXQgI=; b=qOCjoAPsDe5j2uH0aUCrocdPTGFGfmd4AUkWWhPmBcllsSeU9X1ucy5lazycBveA9H Pxdqf9S3iCJQy+aYI5kfZAdnN0RLXBY9yWWIWL/JlC7wF5ySKUePcKw6Tl7Kw38w8kUt 1Op0EQMIwTnvtrMIh0LFqw4WYJp/dd1h1mrjdlHKeN8ByIq2+LKu+HX0tfOWt8eKKkGu dtXLw2b6XI/ilKaCYr2iTn8tfJ83iPsXgzNSEkHd+FQt+Mci7MtPny80T3XLFt5WAioU 3qoZ1xdfI4ol/rITtvphGCQkYrBNv4tZHX0aGFROTENUi0k/hb6sCgxCBE0IhNyiEFYS F39Q== X-Gm-Message-State: AJIora9BVPSwNyXfnikE+HiOgeLOmPVjRWcDU3xEMuo5MhQjJXqgsifd jKBXkSe7NDQy16V9txj6UgswperGVhYZROnD/4AVN71mqafjS3JJzVoC2/AxBKu76L4G+9EQj6u NPES4RBLY45j+8tPlvs7YuIAMVUkfF4H2VbTj1FwR X-Received: by 2002:a81:315:0:b0:317:6789:a0c1 with SMTP id 21-20020a810315000000b003176789a0c1mr50398783ywd.378.1657133610008; Wed, 06 Jul 2022 11:53:30 -0700 (PDT) X-Received: by 2002:a81:315:0:b0:317:6789:a0c1 with SMTP id 21-20020a810315000000b003176789a0c1mr50398765ywd.378.1657133609825; Wed, 06 Jul 2022 11:53:29 -0700 (PDT) MIME-Version: 1.0 References: <20220705185605.3889110-1-jsavitz@redhat.com> <20220705133456.d5572b2e36ebb36188369988@linux-foundation.org> <20220706115031.3c312d9268bf87287be0b8f9@linux-foundation.org> In-Reply-To: <20220706115031.3c312d9268bf87287be0b8f9@linux-foundation.org> From: Joel Savitz Date: Wed, 6 Jul 2022 14:53:14 -0400 Message-ID: Subject: Re: [PATCH] selftests/vm: enable running select groups of tests To: Andrew Morton Cc: Nico Pache , LKML , Shuah Khan , Linux MM , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the feedback. Will rework and send v2. Best, Joel Savitz On Wed, Jul 6, 2022 at 2:50 PM Andrew Morton wrote: > > On Wed, 6 Jul 2022 14:38:03 -0400 Nico Pache wrote: > > > On Tue, Jul 5, 2022 at 4:35 PM Andrew Morton wrote: > > > > > > On Tue, 5 Jul 2022 14:56:05 -0400 Joel Savitz wrote: > > > > > > > Add the ability to run one or more groups of vm tests (specified > > > > by the environment variable TEST_ITEMS). Preserve existing default > > > > behavior of running all tests when TEST_ITEMS is empty or "default". > > > > > Hi Andrew, > > > > > What is the reason for this? What's the use case? > > > > The current design of vm selftests is all-or-none. We'd like to be > > able to selectively run these tests (We settled for selective groups > > of tests rather than individual tests). > > > > The main reason for doing this is our efforts to expand RedHats MM CI > > testing. There are two use cases for these changes that relate to our > > reasoning: > > 1) Our current CI has overlapping tests between LTP and vm selftests, > > so we'd like a way to prevent running the same test in two places. > > 2) We'd like the ability to skip a test if it is determined to be > > unstable or requires certain hardware requirements. > > > > By adding this functionality we are really expanding what we are able > > to do with the stock vm-selftests. > > OK, please let's get this info into the changelog - it's the most > important part. > > > > And why via the environment rather than via commandline args? > > Just a design choice I suppose. I'm sure Joel would be willing to > > implement it as a cmdline arg if you'd prefer that approach. > > I think that would be best. >