From patchwork Wed Jan 10 14:14:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Poirier X-Patchwork-Id: 13516208 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2071.outbound.protection.outlook.com [40.107.237.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE4984B5CE; Wed, 10 Jan 2024 14:16:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="jc0ZX+zq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0uFQcmsoR17y3eFt+hGyQpjfcfpu4AOmrqClmsjNqNunkmOZQ2GIMynCg5Z5viNsqtZtsJkrmWEAysweNNPB6tsAaHk9lFYSgcCSdQXszGK5GIiu/768DfU484N6isk2JD2QZMF/Ch9JAcF42q+xq1X7ksAE8vsUliyArhBm0Kf1icggFUFsYIr0FLFbz/mKC3VgDQo7J1zqd9/AfLdDfGmXSBQSDXV1Oc/tYlT4jGFHzfkJo/riEwasWnZadZzLMJsjn7rqGRSNXKG8COiB9/qKEY4l4F2rHcTVyARy50qXU5JDCsbjGGO2ghRVjJzfShargFLtX3NDgRdY2NAKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=crsgrvP230gqXiD5LYfYxtY1sdIaD5i6UExCS89pY0w=; b=GVsmmuXQDx7pCfm9SGiorly+hAuctBETOVK/hx9QeUWpeFRd07Gxf/Jw8zh7cK5Mt7vvZ1dQ03lJiFgjRESRU0UMRy0I5vjTXGjEBu1nEUZd5LCDmgiwCoZw80BjP+3UPqnn5UpXC7fgNYu8eRRNErVoJfmeKO3WGS8UB/dOqnbMpoMUQbqJBRajb+QTVUJErjekpDoU4/xcpel2OV3SiHYLnwyFNiGbFekneulyiKGyv03KAIS3TZ2xC3Bx6NssJN2t7E58rdHYJ76gZ53rt67ptpKUVWUMW9HA6dTf4ZqeDiYBMKop6ZxTN7ICe/qpNkR5Dnt7fbXEW0rdzwVPtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=crsgrvP230gqXiD5LYfYxtY1sdIaD5i6UExCS89pY0w=; b=jc0ZX+zqiXC55c+SaaLh36J6UrSZS/UY8enfRwLzLbcA1xORkBBa0ZbG+VoBaFmKRoHmt6SSlW90vIMIQhSwxEftaObPaYWTF3yT9O+Urr7Lx2XL0upuGPrqeyNd7ePvMhJiDZRllMYXtW9QiVy2XMi4iNgXoSI9rsOqiHworgVbkVLpprKtajLHRsvm/5/txGPWKk9zLYgRZem16CbaDBgfj/Uds0u8ZNYFJ69c3dPPDXg65Yegy9VoqEIZ1y8W/o6/GFPGEMGIz+EU2+Eugs8gcwyrJmKVkPozqpy4CIkhMsehz8umwhjhHG0mz5dhs3XcWXCDLXM3t/b/Gsbh3A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4373.namprd12.prod.outlook.com (2603:10b6:208:261::8) by CY8PR12MB7708.namprd12.prod.outlook.com (2603:10b6:930:87::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Wed, 10 Jan 2024 14:16:16 +0000 Received: from MN2PR12MB4373.namprd12.prod.outlook.com ([fe80::ff68:f81b:d451:9765]) by MN2PR12MB4373.namprd12.prod.outlook.com ([fe80::ff68:f81b:d451:9765%4]) with mapi id 15.20.7181.015; Wed, 10 Jan 2024 14:16:15 +0000 From: Benjamin Poirier To: netdev@vger.kernel.org Cc: Jay Vosburgh , Andy Gospodarek , Shuah Khan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Petr Machata , Nikolay Aleksandrov , Hangbin Liu , Ido Schimmel , Vladimir Oltean , Jonathan Toppins , Joachim Wiberg , linux-kselftest@vger.kernel.org Subject: [PATCH net 1/2] selftests: bonding: Change script interpreter Date: Wed, 10 Jan 2024 09:14:35 -0500 Message-ID: <20240110141436.157419-2-bpoirier@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110141436.157419-1-bpoirier@nvidia.com> References: <20240110141436.157419-1-bpoirier@nvidia.com> X-ClientProxiedBy: YQBPR0101CA0088.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:4::21) To MN2PR12MB4373.namprd12.prod.outlook.com (2603:10b6:208:261::8) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4373:EE_|CY8PR12MB7708:EE_ X-MS-Office365-Filtering-Correlation-Id: fe892b48-ab35-455d-b932-08dc11e6b50f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fV1R8U6jpj0e7I/UCqM5BQfS8cJgtoaD6z7UyDZdd5Sts5vxa6ZlwxkvM+r1YP2q9OkU4VYhsgkqzzRVSnl/BEch5wQytAmuXmodbRlSYJzdkjH8yP/YahEpll7iCaU4CCncmMTDdZF43WQLJLGnHQav2W9UIo7kNEe+KbRqtdMZufTM9E0IqZnaoAawfOgaUnUv7woX39Us174Fnhbq2Sv+lpiCOzB7bLG/KVnXTy8x4lAYvrc9yRDF9JZSDgR2vQcDm9UqZIhKdXMnT+pvjJ3f2bCUyIkm4lSsmLBzePm9rZHe9lsthHrLDlh7unzlRCSEmEF78J/Bdy6w9/jtzyZb36FOLEIC2hdrkP1Tfz8Vs187VxN8RuPGj4YHSfIQtb0XZ97ltJi1m1jHf+uPmTfbgmE7ixKwY8411a7prINCRkTujf+iK7qqUIy1Uh7FWthkUm6PZTNfHaVVJfFgmIAsMcPoQvCO8KFV+86MkjJaSUXwpE1vyWoVyc/4pMf++acwYfVym/TiNnpnxtjwSR/M03nO/DWfrzWn3I+oDT4wYqqHuN1Q5q1KYdcAahux X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4373.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(39860400002)(396003)(376002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(1076003)(478600001)(2616005)(26005)(6506007)(6486002)(6512007)(6666004)(38100700002)(36756003)(86362001)(5660300002)(2906002)(83380400001)(41300700001)(7416002)(4326008)(66556008)(66946007)(6916009)(8676002)(316002)(54906003)(8936002)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4Qf1KvzoC0AmQKjOxMTVwr/yyvs7vz1rTDdMSecRVShB54K6ElSze0DWEHx3mNy9hBu8AH5XaLwnnq5zaYVl4pnB+jDs6PCOTwTFIHmfKcNVL41fvYtQil2emTQvYX15RQQVfgcWug2bDiIrXMDcr+uBuVQzoNbgIVQqxJVE7nSw0w/UICSFzDAxAW5DhyM44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bXFv9OsvD848xTtfdIPhjmN4gLehmPdCpXio/fnNvX/bBFB9/KKByP1LvFTMqPQvzVZmMN8DDaFrA31gcJNx8NQfqTmuXTjf5493fD1qkwPRFhhlTRXLTSm4gNCj1kWlg2YtoRaN47kdOnXio/ZWnJvDMqnttzhUf4kaYFJTBi6HhdgkPvP58Sqe1jx086BSXQRW/nxbJUYo4aSG2prLoz8TlHTFfBYKjsp6KhvpH2jrs3hwg7NliSzMbncQog7oAAgE4iTmL82i0DHa+Jz5LxGc+CN11xf1S7ZHYn5vHtr5z20j/eXM2RGUDi7wP+ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe892b48-ab35-455d-b932-08dc11e6b50f X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2024 14:16:15.8916 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: la1+IKN0k55ZuW/odOuesxs0AXyJU7ZRFYQFHG29azxwMYIHzERSK5EoVzb9HST9Vu/AiechcKhsBFTF6heaZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7708 The tests changed by this patch, as well as the scripts they source, use features which are not part of POSIX sh (ex. 'source' and 'local'). As a result, these tests fail when /bin/sh is dash such as on Debian. Change the interpreter to bash so that these tests can run successfully. Fixes: d43eff0b85ae ("selftests: bonding: up/down delay w/ slave link flapping") Tested-by: Hangbin Liu Reviewed-by: Hangbin Liu Reviewed-by: Petr Machata Signed-off-by: Benjamin Poirier --- .../selftests/drivers/net/bonding/mode-1-recovery-updelay.sh | 2 +- .../selftests/drivers/net/bonding/mode-2-recovery-updelay.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh b/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh index ad4c845a4ac7..b76bf5030952 100755 --- a/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh +++ b/tools/testing/selftests/drivers/net/bonding/mode-1-recovery-updelay.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Regression Test: diff --git a/tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh b/tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh index 2330d37453f9..8c2619002147 100755 --- a/tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh +++ b/tools/testing/selftests/drivers/net/bonding/mode-2-recovery-updelay.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Regression Test: