Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4605499rdb; Fri, 29 Dec 2023 07:20:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+o3ZbSDkkEp4wz303ZjH1z1P5P7aFuv0q9nOAlT6jovgsWzuFyExf1LCNZeaOa7pBUJ/o X-Received: by 2002:a05:6358:7e05:b0:170:c91a:b466 with SMTP id o5-20020a0563587e0500b00170c91ab466mr8898407rwm.23.1703863205846; Fri, 29 Dec 2023 07:20:05 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j21-20020ac85f95000000b004280a4cb441si598807qta.599.2023.12.29.07.20.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 07:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RXHeCZXK; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-13135-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 72C0A1C22214 for ; Fri, 29 Dec 2023 15:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF141125B7; Fri, 29 Dec 2023 15:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RXHeCZXK" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 CBD7A125A5; Fri, 29 Dec 2023 15:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703863192; x=1735399192; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=BUEddKaB0Xdk3qAFinHGXxP49al3e5WSi9oCKlU03yk=; b=RXHeCZXKtaxk7oCH58gtxC5G8nSczO0qWm1qO2glnE+GjIf1OUCrjpXJ wTizXHpEEh1brpdnV3YqPpDycavbn3oP9ltdukVbLd7b5j1NEA4qTJQm1 4257Y2EdzuKzWwXBPqiYfIvKLgdi/iDVXFOORMp4C4xE81VVFWwdwYLXt FwvTs+pkEUgSuiTMpgIRRpcj4smu7GYFnbLkZaDMhyZiCH3NyAvsH6a2O 5u+Zt57gBwZp8IZp7NrsXMuQFnFyh9mqkoerHYifNezYLzdDaVAWSfn2j 3qaAdVoU2Mr6qWySHZ4O1g4xpD0HP1v73nqsVNTEGV1rPQd/+CQyNiqFN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10938"; a="3955242" X-IronPort-AV: E=Sophos;i="6.04,315,1695711600"; d="scan'208";a="3955242" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2023 07:19:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10938"; a="897534824" X-IronPort-AV: E=Sophos;i="6.04,315,1695711600"; d="scan'208";a="897534824" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Dec 2023 07:19:50 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 29 Dec 2023 07:19:50 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 29 Dec 2023 07:19:50 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 29 Dec 2023 07:19:49 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kblq6qPKD4Ud9k72YbrjPULEzvdbFsX4vMH8z+K45RS6oAe/BvaknZK/lEzyprMn9eIUunyySaStg+k76KAvW3bVbJZXdgdUmiigWUQOUBYUNHh3oZXOQbt25EF6ARcEcZGGZ7plCMlXU+fCmI1Si5Id9VMONFg2fqkUnCyQo7Oir1YtLAeQuQffJsOtiWjx4qtGcpjco67u3byn2iq7zTEdfx6Sbrj41U56TdhHkSR8Feq11kxC5kwrdh0ao7iOgtYeAuPdWE6J8Sjsg77brdMkLUVbD60qMuUGOdHGTwiMMNbqka9KY764atMQBqQFlmcxfkUju7o1GfoxkrIQpw== 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=36JCcfaCHWzRxn+g731Tt0+AP3k87SboeO0UEqVPDs8=; b=nY8/nnRAzAcM+JZeNk+94pkKSYsswg93x4yPSjfV//Hz+alnmxE43wmfihaY10vR78LuyGHCIPfpci79R+gfEWPxSLO8jkQgYHRrpupVfZVzNNYTDduVOk5uN7tgM6emVK1Em+l1C5ejIfigKRnaZL2H9Sm8cPhPP6w4Yl+vPN4fNH2kaTJ668smi7tdjj0PfjpAUJxOakmJzmGOmPSuPhveV7KG8Rg6US9H5ETEP2dBtiHVnRG5m73TeoB5Y4EU59L+KblW/sJ61yCOmBa0ZVavE/ZVN29i0mRbPwIskAYLYUwIYkgwIip0yS9Zmz/U5u/HCs9UKpI6u8536K25LA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BYAPR11MB3672.namprd11.prod.outlook.com (2603:10b6:a03:fa::30) by CH0PR11MB5564.namprd11.prod.outlook.com (2603:10b6:610:d7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21; Fri, 29 Dec 2023 15:19:48 +0000 Received: from BYAPR11MB3672.namprd11.prod.outlook.com ([fe80::ef7b:6435:f727:4d5c]) by BYAPR11MB3672.namprd11.prod.outlook.com ([fe80::ef7b:6435:f727:4d5c%3]) with mapi id 15.20.7135.019; Fri, 29 Dec 2023 15:19:47 +0000 Message-ID: <912e8ffa-364c-1ca2-6bb7-803902a3fd6e@intel.com> Date: Fri, 29 Dec 2023 16:19:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v2 net-next] selftests/net: change shebang to bash to support "source" Content-Language: en-US To: Yujie Liu , , Hangbin Liu CC: Paolo Abeni , David Ahern , , , , kernel test robot References: <20231229131931.3961150-1-yujie.liu@intel.com> From: Przemek Kitszel In-Reply-To: <20231229131931.3961150-1-yujie.liu@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0109.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::9) To BYAPR11MB3672.namprd11.prod.outlook.com (2603:10b6:a03:fa::30) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB3672:EE_|CH0PR11MB5564:EE_ X-MS-Office365-Filtering-Correlation-Id: 69989f9d-9146-449f-7b25-08dc08819821 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XfAjbhxcDz4Alm66aA0f6Ggb8PL38Eg+865+vo6HjL5a7X9QSQ8mO/EjwMuhYofvCe0RV5ZEs7LAuqPfvx66Rh0XXv0tTVYIKwPWZQeAaXUFDanPrgEKiWiDSNztaloLj4Zxl60iSk5cXa+u2JSLjsj+j2A9Q7C8NfV5enu1FeSWg2cn9Q7JKsXme6weF5Kd/Wo75fIZl+qYQ5LMdmw5oxxWa/0Te08Oko4bxltreoGuSXRbvC3BmTB0zB1iM4p3in8oyVFhS24Y5sGrNucKP+liQicxvmT6OOdblXqlVtwXDS1EcudaisvO/rMkyEqK9JXiNrcOI6+VdX3ETnCiUDLoyOfHbs8HzCATkNVEA7qAqiNEcWJD16GBjZYrdzVFxOWpfltDcZBlVzsgS6UKRg9WvZNCn876hR8lEO+25yCGaVRF8ouUCtV3chpqXdqWq/08RxwAxIHxgulWVZBIzLgKbhWgyEMbyyFZnNlk262UBbys0tcvyufblsqsf1suYA0ZX/sZff0R83BVC2j2M/8U0D5v3qZmhoq9SruQeDzRrXn9VDMxpZIOLLGstTrxpkxQFVwH+wjSDUaFR4GSU9NZZ0pV8VH8l54m7RsSvC7QvoptAXbmyslve+ov2wtJy32Jin14ptAgoA9+rVmdTA70EUKhG3JKBYhcEqdbrknReDBHkZEs1W7I5nrOIrLc35S/D9L0HM9Xj6sIi9FPVDIqj1jstvWxPlRw4dxtmAA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3672.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(39860400002)(376002)(366004)(136003)(230173577357003)(230273577357003)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(53546011)(6512007)(6506007)(478600001)(110136005)(54906003)(82960400001)(966005)(66556008)(66476007)(86362001)(107886003)(6486002)(36756003)(31686004)(26005)(6666004)(66946007)(316002)(31696002)(83380400001)(4326008)(8936002)(8676002)(5660300002)(2906002)(41300700001)(2616005)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?amJtak9aaTB2SU43TVFXc29KOXF6ZVNKVlJDZmN0TllzMWE3dmczNVM5QlUy?= =?utf-8?B?VElsdWJKSml6RXc5TlRoV2hRQ3AzZVlLU1c3ckw3TzYyVkIrS3U2L21tNXV4?= =?utf-8?B?SkJGRnZSemhIQjVGMWNHMWdWbzlJcVN5T3owRThMSmZrOUVzRTNKTm5xdGxN?= =?utf-8?B?U2loc0ZWYTJveCt4SnlhR01NeDUvbXZtTEFWbVpZTVNHYmovNzVrNzFwcWRZ?= =?utf-8?B?ZVlUMGJHcmM3NitKZzhQUUYxUFowUDk4dXNKK09UVzB0cUpLeWJHZVJLNXY0?= =?ut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GpiVldRcXhW?= =?utf-8?B?VGY2MnZjeFpHZHdpcUNPWUhISGltMFFEZHdnMk0yMXJxaWt1aUJhVGlhTEcx?= =?utf-8?B?Rmc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 69989f9d-9146-449f-7b25-08dc08819821 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3672.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2023 15:19:47.8688 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: J8kAa/ef40+FUWGyxO0PPQUnh2L8Xd9ys0LXs5ILF5UAM2ucj0b6E4EUk2CELcUg5Cms8A74RYIGu9KiQ8w014VZWiwls5yIicUy5ucG2p8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5564 X-OriginatorOrg: intel.com On 12/29/23 14:19, Yujie Liu wrote: > The patch set [1] added a general lib.sh in net selftests, and converted > several test scripts to source the lib.sh. > > unicast_extensions.sh (converted in [1]) and pmtu.sh (converted in [2]) > have a /bin/sh shebang which may point to various shells in different > distributions, but "source" is only available in some of them. For > example, "source" is a built-it function in bash, but it cannot be > used in dash. > > Refer to other scripts that were converted together, simply change the > shebang to bash to fix the following issues when the default /bin/sh > points to other shells. > (snip) > > Link: https://lore.kernel.org/all/20231202020110.362433-1-liuhangbin@gmail.com/ [1] > Link: https://lore.kernel.org/all/20231219094856.1740079-1-liuhangbin@gmail.com/ [2] > Reported-by: kernel test robot > Signed-off-by: Yujie Liu I would recommend use of shellcheck in the future, it will catch this particular bug, with following warning: SC3046: In POSIX sh, 'source' in place of '.' is undefined. Being specific, and requiring bash looks fine for me. Reviewed-by: Przemek Kitszel