From patchwork Tue Jan 16 09:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13520594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42D72C47077 for ; Tue, 16 Jan 2024 09:14:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7DE586B007B; Tue, 16 Jan 2024 04:14:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 78D316B007D; Tue, 16 Jan 2024 04:14:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 67C636B007E; Tue, 16 Jan 2024 04:14:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 572D96B007B for ; Tue, 16 Jan 2024 04:14:16 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 56BB8160220 for ; Tue, 16 Jan 2024 09:05:32 +0000 (UTC) X-FDA: 81684590904.08.68F1BFC Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by imf29.hostedemail.com (Postfix) with ESMTP id AB17B120026 for ; Tue, 16 Jan 2024 09:05:30 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=MjVEw5nk; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf29.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705395930; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=MJb2CUuW71d3MccgVI7AqCKMlAjmKuLvYDXmNd1u6NA=; b=ABUy/D7twZZcC6Ba4uo2jkSQe0NzoRtQsatQvczLW0sRrS20EFL5V9x07CkJWMUFmW9J0U r75ztsYsy84LxnIny7I7tjHiZrX1ODQ33oq06gu1DtvEw4QCqu/sq5xwK6Z6JZez/p+cf+ dh3yUvo1X3sg3ZVQZ1kjYRo1pbg3LmU= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=MjVEw5nk; dmarc=pass (policy=quarantine) header.from=collabora.com; spf=pass (imf29.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705395930; a=rsa-sha256; cv=none; b=PLvkNfWKre85N6AcsDNYYRsaKQdCo5dQ0wVKeC4Ni6XCPuTqIXrz8/5bbBTL214WW2dy4Q w8ioqMxKoG3GOLtcsP+uJn5rz9D/PnsR65YPBHCOap14xIg4idCRj1xIEBmhNet/xQdCZx HIS7L+hW8T2EHrjM7jECzVJ+fbM3RMI= 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: AB17B120026 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: h5j14jztrq17e6cd1w377pw1p69n84zc X-HE-Tag: 1705395930-160238 X-HE-Meta: U2FsdGVkX1/gAYOoaGvRXk4HmbhO9jpRPjPI5pXu3fpxOUHrUOHUA3Mu8KAnSYeproM93aDsMToBP8o8amvjWlJlMYvSPCxOD5wujvRY3UcB5+a95tMjH2l6rmpvipSlQzpHSGTAPTYcVwDBIjKsI2rxf8Lxj1eANNhA8mJddT5sXvhRhWGdlawoTtbBYdbp3J1THSvEL/0heVbvi1ri4qFNoOkrjygNdjQFWOD7q658YnILa+WoPvWD/l+uQmg9DBazQA3QOYwXUKUJcZh45eN6RwGnYRajxHzYcPSv6kU7ePOdI3XbX3xzEfZPoObKd8crm8ey77RIiWz0OS2NXSY+Ci77tlwRimky7auAZKNe0cLXz568jYYvMdSZwsnNBaBLW2104Kuc1D//GK86vVhNQDz0ZaBYhJb6XRnfoUkA3MHGmg1jr9usTVDPPvtd0DrXDSkMj6UEh+f2f/i+SmZ25RDI2lbIxCa2zQ6tPWTB/3nB/FUbKoaSWzG9VhAKqr4HOFtx2MNkFxH+QvqPj3xBiRGRWYRFey0ma/iE8fzNzPAiVa1+DlqkZsWscypMImxIsfCGgvLj5yxuN6aL8SLaeed0XaWz6Iq8P/iaVFk69E8YoF4H3R8/IdX6niBxDRkrJ9y56AK4n3X5TN4xZbcTQkW5h0O5ps1suG1WJFMmruMRn/G9nZFDEK2eLjAg7OP7T5hBkXmsWED1kRAf/OIavdqFcx6c5QEgL9tZojthHpHA2QyhEyQEICOdDo/vqpuFeM0EIObUUjj+hvwSDY6yC8zsRV07sX7oaHqZpxBCbPJIAqHQWX1sCyCr31++ZdWk2NtFFzjVxLOQjhOV5LPoo66NXd1tMW9tkEiburpDy0iSl1JjhEyOe5Bt1F6qV1PFIhSsXu7ye2GK2aoZyoDjy+8diEcp6DLFSeyfSgGKplDD8dgyd+lYLM0AUhBDLmKUyVZaCkVACQLQA2b fYks4ef1 fEJGHSXjPRDBCton1Z0a3n0Ptbhqhw0Cl6bi+wFEpN/Rl8eLE1pzRs3NhCNkDf9+7cHIY5+W7D8hGof7uVD1/aLC8TBZxL5Y2L9T5WCLCTkTqKzIyOgZ+son50szhj3TgrJNFmJ1SYHvJZYRTPWoZxhfhKr0EYlWopsXst8Tqq9DUctf8U3ybx137NCD8BlgKEJFn+SLikcviZd5gW62QViQ/SmTrKWD5y0fp8b4VvQjVfoXQNfxz/QGMNQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.006691, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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