Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1620113lqp; Mon, 15 Apr 2024 11:38:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNTrVL5ANApDzhWnaN2I+XZJmHAEp6g+lydILZ9BfVCtVRE+DGzDOOZNeT7V3SaVAWbUjiK2NbXEpL2kmX6FzsSJ+fvuoqi8vnJl2JiA== X-Google-Smtp-Source: AGHT+IEmtX5vaKnsMV+eYOY8+JQvRJSpyehzvk+wameqpOgA00gFNZccMLpUCxWmSRJ4elGU8qUX X-Received: by 2002:a05:6358:2693:b0:17e:7c50:40b5 with SMTP id d19-20020a056358269300b0017e7c5040b5mr13492443rwc.17.1713206297583; Mon, 15 Apr 2024 11:38:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713206297; cv=pass; d=google.com; s=arc-20160816; b=AmnXtaH/Ip+wjZork7Of/9NvvrqtoaLRxM53iYhixnc2l/dIKq4orPVuVz84di5Oa5 oUgWEyMaotvaKgG45Uezc3stA//r6lKRR9f6i0aBYdFMrWkA1NQ2NMclDceg7n5v1Px3 AF6Db6hglUs1aiZp2hpEz3mHIe6WgO8+aKe7SPU0XortIkRzyrjqxdwv4v34UY566BtT F8UiMP+Cq/RKl8IoK21hpd3tZcFAbldv6qjYeUvgeDjD3zGKyrpTB4sPae+G1VDudfEw P8VpiQUFBSMFOQzj0ulcVSED6weWRGxIvVGUz8cZv8GIm+AQvkcg/C9s5ylcfEQAS9R0 hlKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BHONBJp7ayFPB0Eq3TIC18X5q3XHSOrg6UO5D7yEpxA=; fh=3YBUlsc5ACOC6g9wnWN9evtgkE+psAfiMy4GsvQTPrc=; b=QJpU/8nG9KWpfxsWyk9CGaoYDAWj0KvHW58Z5eMuQUJwkAfCpbAELulNZxCi/Ai9yN 9HDb3kPjbNYjISGSWbdKExk/SiMBk9iTEU59qfZf+6NtHEexED018JCd/tuWmOz6Fsp/ 0EAN0D4TWNOcC2apaVan7zeWZMy04ZTjhjfLWLEU3/jRyL7rx1cgyZUBG94PAv1DYL2e a3tOFTyXwnfbRR4XxhNpCXh5cM/5adst10tSXOpvCvulhhOrxcvozpY6+n/vqz7ZPIab 1Y12IzLuQ7MCCIu8pTAB5i+YD+8eEFKHsQE+/KKbTbScPzYRKbV49zJ9PRRSgmquNcoI aF4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QdWD1EKV; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-145721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h14-20020a63530e000000b005d70bdd12f1si8019253pgb.189.2024.04.15.11.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 11:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QdWD1EKV; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-145721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E870B213F1 for ; Mon, 15 Apr 2024 18:38:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4358015575B; Mon, 15 Apr 2024 18:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="QdWD1EKV" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 02DE941C66; Mon, 15 Apr 2024 18:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713206279; cv=none; b=B00aEgu7IXGQegkKtHvc4JHbGFa3/5qAPqWeLgf17iXlupuXaCCMvD6tEakwzb95gDD2SIbmzAV8uDHTFpPyqqIF77RHypeTdEUR4rLRwBUO/zBZymLLRCaQN4HWINXc2PtmcoefHtdeK6kUIm1cXr9cHyj3jUASR9mUO5QTN+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713206279; c=relaxed/simple; bh=U29sDrgbhhdXj+npBt1jlHxYJTm07oduug5LWw9LWsU=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=Ui3zK6B7hXImESGtMPr5l9E3udaBpA/uM/Yp2rAk4IuDSIHA0g+Yblo9w/7mUBAiYs6JSygPl2TSKfi7woJTIVJGfDHG6a65WEoy6Cv3bgqkyEPFntPkaXRho9TIXMF8kzWZ3u/8eMfgdNbBqQRI3oU6k8HmpubGW/F4u7TUHe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=QdWD1EKV; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713206276; bh=U29sDrgbhhdXj+npBt1jlHxYJTm07oduug5LWw9LWsU=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=QdWD1EKVTObBT2wXUT8lnEtSx9LXzcJYzfDirIso9e+V2B3BAnLOae0svdRihqC8t EQXyFBqlA5DD+hNEctLOlMdxDBkbwxb39cJYshUjVkycsxTu/RSUOEDORweWMJVt2B iZU8vEBb9GEM15dJUTjrBEzvZiP3qQ1lJnzKATDxseIYPZfOd6M3bLC2RB4XZAiovD uRpJxdm/26pM9DIDzpQuw8oNMevbXimZfth+9hMVJ0J4Yrm0bD3AjRSUOhvNMTVm6u UAPOmswX4Dcmx6Da+ehimEAAf34zk4PDFax5jJFZobC5yNQ+gi8MubJUhVvLwOuEhV VS67pw1BuZO5A== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 334C13781107; Mon, 15 Apr 2024 18:37:51 +0000 (UTC) Message-ID: <01247791-7841-4530-bde3-5db3fbd1770d@collabora.com> Date: Mon, 15 Apr 2024 23:38:28 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Sebastian Reichel , Mike Looijmans , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 2/2] selftests: power_supply: Make it POSIX-compliant To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Shuah Khan References: <20240415-supply-selftest-posix-sh-v1-0-328f008d698d@collabora.com> <20240415-supply-selftest-posix-sh-v1-2-328f008d698d@collabora.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240415-supply-selftest-posix-sh-v1-2-328f008d698d@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/15/24 8:32 PM, NĂ­colas F. R. A. Prado wrote: > There is one use of bash specific syntax in the script. Change it to the > equivalent POSIX syntax. This doesn't change functionality and allows > the test to be run on shells other than bash. > > Reported-by: Mike Looijmans > Closes: https://lore.kernel.org/all/efae4037-c22a-40be-8ba9-7c1c12ece042@topic.nl/ > Fixes: 4a679c5afca0 ("selftests: Add test to verify power supply properties") > Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: Muhammad Usama Anjum > --- > tools/testing/selftests/power_supply/test_power_supply_properties.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/power_supply/test_power_supply_properties.sh b/tools/testing/selftests/power_supply/test_power_supply_properties.sh > index df272dfe1d2a..a66b1313ed88 100755 > --- a/tools/testing/selftests/power_supply/test_power_supply_properties.sh > +++ b/tools/testing/selftests/power_supply/test_power_supply_properties.sh > @@ -23,7 +23,7 @@ count_tests() { > total_tests=0 > > for i in $SUPPLIES; do > - total_tests=$(("$total_tests" + "$NUM_TESTS")) > + total_tests=$((total_tests + NUM_TESTS)) > done > > echo "$total_tests" > -- BR, Muhammad Usama Anjum