Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp325713rdb; Tue, 16 Jan 2024 01:05:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwsdzLiO1AKZGGxgVcCBb0tJQVy7YEgR3C1ajq1RzUFGhHsWuWARPf9ZBez5nzo42Bt+gK X-Received: by 2002:a05:622a:1b29:b0:429:7d5c:2997 with SMTP id bb41-20020a05622a1b2900b004297d5c2997mr12096237qtb.75.1705395939662; Tue, 16 Jan 2024 01:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705395939; cv=none; d=google.com; s=arc-20160816; b=K++gAfm0CPQC+cJlW3JL6NCKCOqle5OLaqtxkBTndD3zvph9onbhUDdsU4ElBkA+P2 ZVuUw1o30pSTxc3VdvSNVA0ZeblogQmQZPYYvuXKKXWeKyOAQuibV3LnT2ytqCzX+6zy wkcg8RWLkd0cIaCyBErI36k9f4AX7e85Rsy0wZWxwKL2boQiSApPTHVyZj0rQTyfD+0A rpbqEGLtTg8f/gN/0WXld0LH3MThwARm1KTGtqrNBWerXleuozeHt5DGXWNYR/Ph9066 Tm8KPrHCTYfHi43rmG9pEM0rxRrUCXjsuza+IPnHKghA2R9CRQkCaLrnyTtPQjeo8LiJ aEeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XBM++dyY53xmwvWVLsHxFMWxC5pSrc4GXd3AOsWO+8M=; fh=mVBrUHkdhr4FdAuGFuDLONjpBFXQ76Q1/p1ghTG2QxI=; b=EheqQ4/p0DwxaHPxphAjU+bscXYO+KmFI+nZAla0XsO/y8qR+o8Q5s9lgffWmxghhP QsceIJ16gc+xSpqYP9ZrAgwhNFhWodorI4KZeBZ0Lap5/pIeuMjzLIcP6xJ/QAMJSuzP D4GXrYzr5nBXsl1RthpAHFDsNdlTW00HudFlMpEsJcxuxOIB64xAUYdoxI+ChAppnP5R V05HTxEJTo4PuAFHpJ5bUlsCD/1sawZW0Td2deXdUwXNqoIpTud+pUsuH5a/jFePk7AM tx7oW26gMfQBw6C+acaTG8YyB3AuMRFo6/aLt4lelGSxgmCD5+btnTPYY4MX9b0eKFCl pPiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@collabora.com header.s=mail header.b=MjVEw5nk; spf=pass (google.com: domain of linux-kernel+bounces-27150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s15-20020a05622a018f00b0042a07e423f4si300525qtw.230.2024.01.16.01.05.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 01:05:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@collabora.com header.s=mail header.b=MjVEw5nk; spf=pass (google.com: domain of linux-kernel+bounces-27150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 673211C22E75 for ; Tue, 16 Jan 2024 09:05:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32942125CE; Tue, 16 Jan 2024 09:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="MjVEw5nk" 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 D5EB512B70; Tue, 16 Jan 2024 09:05:30 +0000 (UTC) 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=1705395929; bh=ugmXZTrJwY2DWctHzDYOn6LeXz0LXSbkdXjcp9JcxPY=; h=From:To:Cc:Subject:Date:From; b=MjVEw5nkSkP/JIGNqaz8zdXhJ+OBdsmCH/EnCjOyDWaEJf94kW40RkGtgkxlk7dHq psvYgaoIkR3YK0x1sP+41I/XoAnYotI6lwTiq3X/uIpfjD4uUzh9+Sd4IYYZQt7WgW yG7p8rr842sLq9QwHppi8v8x/8oirKTNiUb+6wIu2lzg/wlW4UtGdU9pb8upJjP3qC k1/iA6Q3kEP7iKDSch3PsUmrvVL8+EVK2D1ceypwisR0XunEXPgySBJISukKY3Fe/g cF7ZAzgupoHnFyrrZtZDpQ651GwKEc4zHh169MQNUV36jrzsYQtDbENiOt96VbwqJi xRR0ZrrVcYSsA== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 212D7378200E; Tue, 16 Jan 2024 09:05:26 +0000 (UTC) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/mm: switch to bash from sh Date: Tue, 16 Jan 2024 14:04:54 +0500 Message-ID: <20240116090455.3407378-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Running charge_reserved_hugetlb.sh generates errors if sh is set to dash: /charge_reserved_hugetlb.sh: 9: [[: not found /charge_reserved_hugetlb.sh: 19: [[: not found /charge_reserved_hugetlb.sh: 27: [[: not found /charge_reserved_hugetlb.sh: 37: [[: not found /charge_reserved_hugetlb.sh: 45: Syntax error: "(" unexpected Switch to using /bin/bash instead of /bin/sh. Make the switch for write_hugetlb_memory.sh as well which is called from charge_reserved_hugetlb.sh. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 2 +- tools/testing/selftests/mm/write_hugetlb_memory.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh b/tools/testing/selftests/mm/charge_reserved_hugetlb.sh index 0899019a7fcb..e14bdd4455f2 100755 --- a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh +++ b/tools/testing/selftests/mm/charge_reserved_hugetlb.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Kselftest framework requirement - SKIP code is 4. diff --git a/tools/testing/selftests/mm/write_hugetlb_memory.sh b/tools/testing/selftests/mm/write_hugetlb_memory.sh index 70a02301f4c2..3d2d2eb9d6ff 100755 --- a/tools/testing/selftests/mm/write_hugetlb_memory.sh +++ b/tools/testing/selftests/mm/write_hugetlb_memory.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: GPL-2.0 set -e -- 2.42.0