From patchwork Thu Jun 1 21:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rishabh Bhatnagar X-Patchwork-Id: 102188 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp618802vqr; Thu, 1 Jun 2023 14:19:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/1tdCj4KrhUXuSF6s3rbmx92WMC6c/3E3G0GG9rohspL/+8j1J8hVQ8sC0Pe5Bq5WFax3 X-Received: by 2002:a17:902:ef92:b0:1ae:7631:7fa9 with SMTP id iz18-20020a170902ef9200b001ae76317fa9mr450303plb.37.1685654343167; Thu, 01 Jun 2023 14:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685654343; cv=none; d=google.com; s=arc-20160816; b=fDGfFNEhqTvw7kTx82pA9V7rnhLmQc6hTlenCjQPhjGb7+uvIrr36epi8peSq6LAn8 GHKYHr0ufIkTgMNx+ssIySQf+4+V+EdXhEEDB0xamsI7JYQ66wjwsk2NYtwmK6B+BOUF +kXXiLHHwRDq/EQYxlzNAIzY+FSK7yE8lhLdhbjoL3ftyu7XHPaQqSSv1aPssi+EzSzq 3ocPQQ0Lrr8aY2J3p2dBM7jcwxkqYc8ncEI8fqaaTaC/5QPnw4PxrOga58JxIaWNzYpV 6O+J1xlxsyoRXO4J32QPDNAlizJ10buqJYY1IBLC9ycW5zCTSYCLNuv4PlyObDpEXQ6m WcEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SKdW2ZJfQ+aG3pXjE/jkFIRToVo6FwJhYDU5tpufyjQ=; b=DvP/5LMAgZ6C446Wyar9ZT7LObngQv9Jl1nCL1Lg+1ssDAWZFN4mIkozrhfvsafghh Vl2ej/zmRHcnoWZwx3S7JgF5IKgQ+AVfwT8lQK3qNSP96s4NIRepLCmIxP8KxfIMyFR0 jCMBbJY1hlH6nEVK+k0fZWUgjDxKJFh00asCZqy8I4ppYim4gLsjzIKor0u6XP1xFNKD m9smp8TZoOf8PqcDmH/yxmKL0fboClkxcRA/X3BbVDjvLJwvVCQXZFago8UKtDZ3vRoR 93yzlirSIWQPwxIDuQIaV9O/5xpVNIODADRuVK6oz2egqmSuZCf4WkAtr91yPGTTcTDH 0cdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=j8pmfErY; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170902758d00b001a6a636eb6dsi3297162pll.215.2023.06.01.14.18.48; Thu, 01 Jun 2023 14:19:03 -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=@amazon.com header.s=amazon201209 header.b=j8pmfErY; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbjFAVL1 (ORCPT + 99 others); Thu, 1 Jun 2023 17:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjFAVL0 (ORCPT ); Thu, 1 Jun 2023 17:11:26 -0400 Received: from smtp-fw-52004.amazon.com (smtp-fw-52004.amazon.com [52.119.213.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD0C128; Thu, 1 Jun 2023 14:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1685653886; x=1717189886; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SKdW2ZJfQ+aG3pXjE/jkFIRToVo6FwJhYDU5tpufyjQ=; b=j8pmfErYxMI3ezgTJc4a8obvuD4Y17XD6kJC1y8UrdsiYC4aF1S13X8q ME/pFWMXy3qYRh/VSOY+Frbx+QxL44q6QEaGNaxZb1oRaWvABGa8mW+p0 wpyXqDS9lolmbevrRZL3U1+WVUE3sGAKsjdEROdcuPSZUR1VxVBDxZfK+ U=; X-IronPort-AV: E=Sophos;i="6.00,210,1681171200"; d="scan'208";a="135395904" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-b1c0e1d0.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-52004.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 21:11:25 +0000 Received: from EX19MTAUWA002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2c-m6i4x-b1c0e1d0.us-west-2.amazon.com (Postfix) with ESMTPS id C308B806A7; Thu, 1 Jun 2023 21:11:22 +0000 (UTC) Received: from EX19D002UWC003.ant.amazon.com (10.13.138.183) by EX19MTAUWA002.ant.amazon.com (10.250.64.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 1 Jun 2023 21:11:22 +0000 Received: from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by EX19D002UWC003.ant.amazon.com (10.13.138.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 1 Jun 2023 21:11:22 +0000 Received: from dev-dsk-risbhat-2b-8bdc64cd.us-west-2.amazon.com (10.189.73.169) by mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 1 Jun 2023 21:11:22 +0000 Received: by dev-dsk-risbhat-2b-8bdc64cd.us-west-2.amazon.com (Postfix, from userid 22673075) id 314A2E6E; Thu, 1 Jun 2023 21:11:22 +0000 (UTC) From: Rishabh Bhatnagar To: CC: , , "Rishabh Bhatnagar" Subject: [PATCH] kselftests: Sort the collections list to avoid duplicate tests Date: Thu, 1 Jun 2023 21:11:12 +0000 Message-ID: <20230601211112.12724-1-risbhat@amazon.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767536688189105055?= X-GMAIL-MSGID: =?utf-8?q?1767536688189105055?= If the collections list is not sorted uniq doesn't weed out duplicate tests correctly. Make sure to sort it before running uniq. Signed-off-by: Rishabh Bhatnagar --- tools/testing/selftests/run_kselftest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/run_kselftest.sh b/tools/testing/selftests/run_kselftest.sh index 97165a83df63..e0cb10c85169 100755 --- a/tools/testing/selftests/run_kselftest.sh +++ b/tools/testing/selftests/run_kselftest.sh @@ -85,7 +85,7 @@ if [ -n "$TESTS" ]; then available="$(echo "$valid" | sed -e 's/ /\n/g')" fi -collections=$(echo "$available" | cut -d: -f1 | uniq) +collections=$(echo "$available" | cut -d: -f1 | sort | uniq) for collection in $collections ; do [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg tests=$(echo "$available" | grep "^$collection:" | cut -d: -f2)